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.
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.Update me weekly
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!Translate this post