guysolamour/laravel-commands

As suit of useful artisan commands for laravel

v2.4.1 2021-07-13 06:00 UTC

This package is auto-updated.

Last update: 2021-11-13 06:35:41 UTC


README

Packagist Packagist Packagist

This package is a collection of artisan commands for speed up developmemt with laravel framework.

Installation

Install via composer

composer require guysolamour/laravel-commands

Usage

Create Database Command

php artisan cmd:db:create databasename

You can use --help option to have more informations about this command

Drop Database Command

php artisan cmd:db:drop databasename

You can use --help option to have more informations about this command

Seed 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

Dump 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

Trait 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

Service Provider 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

Helper 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

Security

If you discover any security related issues, please email instead of using the issue tracker.