Advertisement

The Power of Laravel Generators

by

Those of us who use Laravel on a daily basis will be quite familiar with migrations. The only problem is that, when we run php artisan migration:make, only a bit of boilerplate code is generated for us. Wouldn't it be amazing if we could also generate the schema for both the up and down functions? How much time would that save!?

Well, now, we can! In preparation for my upcoming Laravel Essentials course, I created a generator tool that not only handles migrations beautifully, but also assists when generating models, controllers, views, assets, test files...lots of things! I'll show you how to install and use it in this lesson.


Screencast


Download the generator task from Github.