Get a free year on Tuts+ this month when you purchase a Siteground hosting plan from $3.95/mo
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
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.