A Laravel command to easily create all of the needed files for a new model.
johnclendvoy/makeall is a Laravel package for a laravel command to easily create all of the needed files for a new model..
It currently has 0 GitHub stars and 5 downloads on Packagist.
Install it with composer require johnclendvoy/makeall.
Discover more Laravel packages by johnclendvoy
or browse all Laravel packages to compare alternatives.
Last updated
This package makes it easy to generate all the files needed for a new object in a laravel project. With one command, it will generate, a Model, Controller, Request, Migration and a folder of views all based on templates that you design that work with your workflow.
Via Composer
$ composer require johnclendvoy/makeall
$ php artisan make:all ObjectName
Where ObjectName is the singular name of your object. For example, Event, BlogPostComment, or PhotoGallery or whatever you need for your project.
This single command is the equivalent to running the following commands:
$ php artisan make:model ObjectName
$ php artisan make:controller ObjectNameController
$ php artisan make:request ObjectNameFormRequest
$ php artisan make:migration create_object_names_table --create=object_names
$ mkdir ./resources/views/object-name
$ cd resources/views/object-name
$ touch index.blade.php
$ touch show.blade.php
$ touch create.blade.php
The singularity or case of the argument ObjectName isn't really important. The following commands are supported and equivalent.
$ php artisan make:all ObjectName
$ php artisan make:all ObjectNames
$ php artisan make:all object-name
$ php artisan make:all object-names
$ php artisan make:all object_name
$ php artisan make:all Object_Names
$ php artisan make:all "object name"
$ php artisan make:all "Object Names"
If you discover any issues, or would like to improve this package, please do not hesitate to email [email protected] or submit an issue on github.
MIT license. Please see the license file for more information.