Introduction

Making Laravel artisan make: command easier

$ php artisan easymake:model Data --belongsTo="User"

Command will create model Data in App namespace with belongsTo user method

You can also use all base arguments and options from laravel

$ php artisan easymake:model Data --belongsTo="User" -m

Command will create model as described above, and will also add user_id column (in this case) to migration file

Last updated