This package is a collection of artisan commands for speed up developmemt with laravel framework.
Install via composer
composer require guysolamour/laravel-commands
php artisan cmd:db:create databasename
You can use --help option to have more informations about this command
php artisan cmd:db:drop databasename
You can use --help option to have more informations about this command
php artisan cmd:db:seed
If you want to run all seed --all option
php artisan cmd:db:seed --all
If you want to run a specific class you can use --class option
php artisan cmd:db:seed --class=UsersTableSeeder
Run seed in production --force option
php artisan cmd:db:seed --force
You can use --help option to have more informations about this command
php artisan cmd:db:dump
Available drivers are mysql, pgsql, sqlite and default driver is mysql
Host can be changed with --host option
php artisan cmd:db:dump --host sqlite
Username can be changed with --dbusername option
php artisan cmd:db:dump --dbusername root
Password can be changed with --dbpassword option
php artisan cmd:db:dump --dbpassword root
Database name can be changed with --dbname option
php artisan cmd:db:dump --dbname databasename
Dump filename can be changed with --filename option
php artisan cmd:db:dump --filename dump.sql
You can use --help option to have more informations about this command
php artisan cmd:make:trait traitname
Folder can be changed with --folder option
php artisan cmd:make:trait traitname --folder={folder}
You can use --help option to have more informations about this command
php artisan cmd:make:provider providername
Folder can be changed with --folder option
php artisan cmd:make:provider providername --folder={folder}
You can use --help option to have more informations about this command
php artisan cmd:make:helper helpername
Folder name can be changed with --folder option
php artisan cmd:make:helper helpername --folder={folder}
You can use --help option to have more informations about this command
If you discover any security related issues, please email instead of using the issue tracker.