Category Archives: Artisan

Laravel: Write Class Generator Command

Assalamualaikum, In this post, I will share with you how you can create your own class generator – like php artisan make:model …. So here the trick, in order to create your own class generator command, you can extend the use Illuminate\Console\GeneratorCommand. For instance, you want to create make:service. First, create new artisan command by… Read More »

Laravel: Observer

Assalamualaikum & Hi, Eloquent models fire several events, allowing you to hook into the following points in a model’s lifecycle: retrieved, creating, created, updating, updated, saving, saved, deleting, deleted, restoring, restored. Events allow you to easily execute code each time a specific model class is saved or updated in the database. Based on events above,… Read More »

How to Use Lumen in Laravel

You love the speed of Lumen but you want to have the features of Laravel? No problem, just include Lumen inside Laravel! Below are the steps to include Lumen inside of the Laravel Please ensure to create an empty Laravel and Lumen project because you need to copy some files from Lumen to Laravel Here… Read More »

Training: Laravel – Batch 4

Registration Open Now! Please register at Laravel – Batch 4 Course Details Date: 16th & 17th April 2016 Location: http://bit.ly/cc-training-location Fee: RM 300 Syllabus Details Setup The Basic – Routing – Controllers – Views – Blade Templates Database – Migrations – Seeding Eloquent ORM – CRUD – Relationship Packages – User Management – Access Control… Read More »