Web Developer | Lean Machine

My Blog is about Web Development and my journey as a body builder.


Michael Brooks Profile Image

Unique slug for news articles using Laravel's unique valitation


Posted in Programming Tutorials on Jan 27, 2015

Just recently at work, I had to change the way my news articles worked. We have a client who has Holiday Homes, and they have news articles per park. When I redeveloped the website in Laravel, I created a one to many relationship based on one park has many news articles.

Michael Brooks Profile Image

Website Update


Posted in General Updates on Jan 23, 2015

As you can see, it has been a while since my last post, but I have been busy trying to push updates over to my website to help strengthen the relationships between you and I. You can now share any articles you like by scrolling to the bottom of each article and click on the "Share This" button. Each social website which you can share with will pop up. I do however need to improve on this so it will automate text titles, images (when I start adding them) and using selected paragraphs.

Michael Brooks Profile Image

UTF-8 causing problems for Social and Email Websites Laravel


Posted in Programming Tutorials on Dec 08, 2014

I've been developing a couple of projects which use UTF-8 encoding on my databases, but have found that this has been problematic recently. Mobile phones and tablets now use emoticons which can cause problems for us UTF-8 users. So how do we fix this issue? Well let me explain below...

Michael Brooks Profile Image

New Blog Design


Posted in General Updates on Nov 06, 2014

It's been a while since I've post and for that, I do appologise. My head has been loaded with ideas and new projects that I absolutely would love to get started on, but I tend to try and start 100 all at once and then get too agitated because none of them are working for me or just get pushed away. My first idea was to create a better, not so bland website. This idea has been around ever since I created my Blog, but I never got round to it because I wanted to make larger projects. It's now finally come to the forefront of my mind and so what you are now looking at is a better design. I will be trying to push out small changes here and there to keep it as fresh as possible, so if I don't create a new Blog post, there could be another change elsewhere (so keep your eyes peeled).

Michael Brooks Profile Image

How To Use Jquery UI Sortable in Laravel 4


Posted in Programming Tutorials on Sep 03, 2014

I needed a way to change the sort order of my data inside of an admin interface which I have created. After a little looking around, I found many tutorials which would show how to get this done with JQuery, but wouldn't show the best way to handle this data (and in my case using Laravel to handle this data)...

Michael Brooks Profile Image

Laravel AJAX Tutorial Using HTML5's FormData


Posted in Programming Tutorials on Aug 28, 2014

For this tutorial, I will show you guys how I managed to create an image uploader for your profile image. This is very similar to how Facebook's/Twitter's functionality. First of all, lets create the routes, for this we will need to create a get and post route...

Michael Brooks Profile Image

User Registration and Login


Posted in Programming Tutorials on Aug 23, 2014

This will be a fairly simple tutorial as I'm not re-creating the wheel here. I started by developing a login/registration system by myself until I start talking to people in Laravel's IRC. There is a package which did everything I needed it to do which was as follows...

Michael Brooks Profile Image

Thoughts on my social networking site and what has changed


Posted in General Updates on Aug 11, 2014

I've had a lot to think about when it comes to the where I want to take my website. Firstly, do I really want to take on such a big task of trying to beat Facebook on my own, when they have a huge team? The answer to that is no, no I don't. I have always had some great ideas with what I wanted to do, but the fact is, I couldn't carry this out on my own.

Michael Brooks Profile Image

Virgin Media Calling and Asking for Password


Posted in General Updates on Aug 08, 2014

Last week some time, I received a phone call from Virgin Media. The caller said he would like to talk to me regarding my account, which at first seemed fairly legit. I asked him what the problem was and to his response, I was shocked. The reply was "Firstly Michael, I need to know your password". I told him that I'm not giving him my password as he rang me, he knows that he is talking to the correct person. I personally felt like this could have easily been some fraudulent call, so after him not giving up on this, despite me asking several times what it was actually regarding and him repeating... "I can't tell you, until you give me your password". I said to him that you can send me a letter with what this is regarding and I hung up.

Michael Brooks Profile Image

Nice little Laravel tip (Blade Ternary Operator)


Posted in Programming Tutorials on Jun 26, 2014

Just today, I was looking at using a ternary operator in Laravel's Blade templating system and thought to myself... "There must be a better way of doing this". After a quick Google aanndd... BEHOLD THE OR STATEMENT! Since version 4.1 they managed to sneak in this "or" statement and it's managed to bypass so many people (I figured this out by the lack of voices shouting about this on Google).

Ad
Ad