This package provides a command to execute CLI or Artisan command on a local server.
You can install the package via composer:
composer require ramonpego/laravel-local
You can publish the config file with:
php artisan vendor:publish --provider="RamonPego\Local\CommandServiceProvider" --tag="local-config"
This is the contents of the published config file:
return [
/*
* Here you can define the path prefix where the commands should be executed.
*/
'default' => '/home',
'path'=>env('COMMAND_PATH_PREFIX')
];
php artisan local whoami
php artisan local cache:clear --artisan
php artisan local optimize -a
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.