1. Code
  2. PHP

The Power of Laravel Generators

Read Time:1 minLanguages:

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.


Download the generator task from Github.

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.