Skip to content

Execute artisan commands on local machine with different users based on spatie/laravel-remote

License

Notifications You must be signed in to change notification settings

ramonpego/laravel-local

Repository files navigation

Execute commands on a local machine based on spatie/laravel-remote

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a command to execute CLI or Artisan command on a local server.

Based on Spatie package consider support them

Installation

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')
];

Usage

php artisan local whoami
php artisan local cache:clear --artisan
php artisan local optimize -a

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Execute artisan commands on local machine with different users based on spatie/laravel-remote

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published