There are many CLI tools nowadays built for Laravel, and this is one of those.
laracommand is a CLI tool to save you time, and gives you the power to scaffold all of your models, controllers, commands in one go.
You need to know the following:
- Need to know PHP
- Basics on Laravel & the artisan command Laravel
- Basics on composer [Composer][https://getcomposer.org]
Why this package?
At the beginning of any project, we need to create many files (models, controllers, views, factories...) Thanks to Laravel artisan commands, to make this happens without any efforts counts but, imagine you want to create 10 models, you need to run the command
php artisan make:model 10 times right?
With this tool, no need for that! All what you need to do is run the command and name as many as
models you want, and it will create them all for you.
You can install the package via composer:
1composer require coderflexx/laracommand --dev
--dev option is to install it in development purposes.
Use the commands like using
laravel make commands
- make model command
1php artisan laracommand:make-model FirstModel SecondModel
You can generate as many as you want of models, and you can add options like
Check out the docs for more, just replace
If you want to create the model and controller for example, you need to do the following:
1php artisan laracommand:make-model FirstModel SecondModel ThirdModel --controller
if pass the flag
-c instead of
This package is for development use only, you are free to disable/remove it once you are done with.
You can follow the changes on this package by accessing the changelog or the releases
If you want to contribute, feel free to read the CONTRIBUTING guidelines, and make your
Today we s learned about Laracommand package, and how to use it. To make our development process easier and save us time.