ramonpego/laravel-local

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

0.5 2021-03-24 18:08 UTC

This package is auto-updated.

Last update: 2024-05-25 01:41:47 UTC


README

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

68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7061636b6167652d736b656c65746f6e2d6c61726176656c2e6a70673f743d31

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.