Articles posted in Laravel

Laravel: Keeping Things Organised

Posted by Jason Lewis in Laravel on

This article is about Laravel 3, some principles may apply to Laravel 4.

As an application grows you begin to see things become unorganized. Your start.php file is filled with a mixture of filters, composers, named views, events, validations, macros, and autoloadings. Everything begins to become a mess, more so now since Laravel ships with the start.php containing a bit of logic. A lot of the above mentioned code can go in routes.php, but if you're like me then you'll prefer to keep only routes in that file.

Continue reading »

Laravel: Controller and Route Layouts

Posted by Jason Lewis in Laravel on

This article is about Laravel 3, some principles may apply to Laravel 4.

In todays application development it's a fairly common practise to have a layout that is used across the vast majority of pages. Most of the time you can just use View::make() and bind data to your layout. But that's not a robust solution. Later on you might change your layouts file name from layouts.core to layouts.main or you might want to make it easy to switch between layouts.

Continue reading »

Laravel: Using Forms and the Validator

Posted by Jason Lewis in Laravel on

This article is about Laravel 3, some principles may apply to Laravel 4.

Forms are an essential part of any web application. We use them for logging in and registering users, requesting feedback, submitting comments, and many other things. However, building them and then validating the submitted data can become a nuisance. Laravel provides us with some neat classes to make things more intuitive.

Continue reading »

Laravel: Getting Started

Posted by Jason Lewis in Laravel on

This article is about Laravel 3, some principles may apply to Laravel 4.

Almost one year ago a beautiful and expressive PHP 5.3 web applications framework was released to the world. It's name is Laravel. Laravel was created by Taylor Otwell to be an extremely powerful yet flexible framework that anyone (with some knowledge!) could just pick up and use. Since its birth Laravel has grown with the help of many contributors to become what it is today, one of the best framework choices for PHP.

I aim to provide Laravel tutorials and code samples every now and again when I get the chance. Today I'll talk about getting started with Laravel and setting up a new project with Git.

Continue reading »