Laravel 4.x cheatsheet

Laravel documentation is good and is improving day by day but here is a brief and basic list of important points and methods that we need to work with. Installation: 1 – Download source from github 2 – Put it into the webroot 3 – Install composer 4 – CD to that …

Ajax-based pagination Laravel 4

Pagination of dataset is a hot topic when it comes to frameworks. I have to agree that Laravel makes pagination a breeze. We almost have to do nothing but chain up a paginate() method with out dataset and we are almost there. Only other thing that we have to do …

Explicitly parsing Blade code in Laravel 4

Laravel by default uses Blade Template Engine which works with files with extension “.blade.php” and are readily parsed without any issue. But if you somehow have to parse the Blade tags you fetched from database or some other source than you might have to look into the Blade API for …

Statics and Laravel 4?

So the other day I was thinking why I have to have to call every method as static in core Laravel modules! Where was the ugly PHP arrow operator (->)? I looked into the code and it led to some great ideas and unveiled some very neat practices. Since I …

Artisan::call() not working in Laravel 4

Artisan is a great commandline tool for Laravel Framework. It provides support for application development using powerful Symfony console component. Just the other day i was working on a Laravel 4 package for my own practice and i found the need to run migrations for my database and Artisan came …

Installing Laravel 4 through Composer on XAMPP

The easiest way to install Laravel on your local xampp server is to install through composer Download Composer from https://getcomposer.org/ Run on command line :

The other method is to download Laravel source from  https://github.com/laravel/laravel/archive/master.zip and extract its contents into webroot so that you may access it somewhat like: …