Advertisement
  1. Code
  2. PHP
  3. Laravel

The Power of Laravel Generators

Scroll to top
1 min read

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.

Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.