Download the PHP package kukuhkkh/laravel-command without Composer
On this page you can find all versions of the php package kukuhkkh/laravel-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kukuhkkh/laravel-command
More information about kukuhkkh/laravel-command
Files in kukuhkkh/laravel-command
Package laravel-command
Short Description Create a Repository and Service class and trait using Artisan CLI
License MIT
Informations about the package laravel-command
Laravel More Command
Laravel More Command is a collection of a few php artisan
commands. You can use it to create a Repository, Repository with Interface, Service, Trait, View(blade file), and Clear Log from the command line using php artisan
command.\
[Note : This package also worked for nWidart/laravel-modules]
Installation
Require the package with composer using the following command:
Or add the following to your composer.json's require-dev section and composer update
Artisan Command List
- Make Repository
- Make Service
- Make Trait
- Make View
- Log Clear
Make Repository
Create a repository Class.\
php artisan make:repository your-repository-name
Example:
or
The above will create a Repositories directory inside the App directory.\
Create a repository with Interface.\
php artisan make:repository your-repository-name -i
Example:
or
Here you need to put extra -i
flag.
The above will create a Repositories directory inside the App directory.
In nWidart/laravel-modules Modules
Create a repository Class.\
php artisan module:make-repository your-repository-name {module-name}
Example:
or
The above will create a Repositories directory inside the {Module} directory.
Create a repository with Interface.\
php artisan module:make-repository your-repository-name {module-name} -i
Example:
or
Here you need to put extra -i
flag.
The above will create a Repositories directory inside the {Module} directory.
\
An Example of created repository class:
Make Service
Create a Service Class.\
php artisan make:service your-service-name
Example:
or
The above will create a Services directory inside the App directory.
In nWidart/laravel-modules Modules
php artisan module:make-service your-service-name {module-name}
Example:
or
The above will create a Services directory inside the {Module} directory.
Make Trait
Create a Trait.\
php artisan make:trait your-trait-name
Example:
or
The above will create a Traits directory inside the App directory.
In nWidart/laravel-modules Modules
php artisan module:make-trait your-trait-name {module-name}
Example:
or
The above will create a Traits directory inside the {Module} directory.
Make View
Create a view.\
php artisan make:view your-view-file-name
Example:
or
The above will create a blade file inside the /resource/views/ directory.
In nWidart/laravel-modules Modules
php artisan module:make-view your-view-file-name {module-name}
Example:
or
The above will create a blade file inside the {Module}/Resources/views/ directory.
Log Clear
php artisan log:clear
The above will deleted all old log data from /storage/logs/ directory.
License
The MIT License (MIT). Please see License for more information.