This Laravel package help to manage multiple commands in one command line, and this package is recomended if you are using Laravel Passport .
Install the package through Composer. Run the following command in your terminal
composer require bajjouayoub/custom-commands
Then publish the config file
php artisan vendor:publish --provider="Bajjouayoub\CustomCommands\CustomCommandsServiceProvider"
First of all, go to the config
folder and the look for custom-commands.php
"command_name" => "command:name"
Output :
php artisan command:name
Note: those commands should be type of string
"commands" => [
// 'config:clear'
// 'migrate:refresh'
// 'db:seed'
// 'passport:install'
...
]
if you need to change some variable in the .env file change the variable to true
by default it's false
"change_env" => true
if you change the change_env
to true
then those fields is required.
the table
variable is refers to the oauth_clients
this table comes with laravel passport
by default.
the row
variable is refers to the secret
row in the oauth_clients
table.
"table" => "" //type of string
"row" => "" //type of string