2017 © Pedro Peláez
 

library l5-webartisan

Artisan for the web. Execute Artisan command on a webpage.

image

cedricziel/l5-webartisan

Artisan for the web. Execute Artisan command on a webpage.

  • Monday, January 4, 2016
  • by cedricziel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Webartisan for Laravel 5

Provides a browser-based artisan console for your application., (*1)

Warning!

This addon is insecure by default! You need to secure the endpoints or strangers will execute commands on your application., (*2)

Configuration

Add the ServiceProvider to config/app.php:, (*3)

    CedricZiel\Webartisan\WebartisanServiceProvider:class,

Now you need to override the routes shipped by the plugin, to secure them with a middleware of your choice., (*4)

Here's an example to secure the endpoints with the auth middleware (app/Providers/RouteServiceProvider):, (*5)

    /**
     * Define the routes for the application.
     *
     * @param  \Illuminate\Routing\Router $router
     *
     * @return void
     */
    public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace], function ($router) {
            require app_path('Http/routes.php');
        });

        /**
         * Webartisan routes
         */
        $router->group([
            'namespace'  => '\CedricZiel\Webartisan\Http\Controllers',
            'middleware' => ['web', 'auth']
        ], function ($router) {
            Route::get('artisan', [
                'as'         => 'artisan',
                'middleware' => 'auth',
                'uses'       => 'WebartisanController@show'
            ]);

            Route::post('artisan', [
                'as'         => 'artisan',
                'middleware' => 'auth',
                'uses'       => 'WebartisanController@execute'
            ]);
        });
    }

License & Credits

This library is based on the work of Ron Shpasser (https://github.com/shpasser/GaeSupportL5)., (*6)

This library is licensed under the MIT License., (*7)

The Versions

04/01 2016

dev-master

9999999-dev

Artisan for the web. Execute Artisan command on a webpage.

  Sources   Download

MIT

The Requires

 

by Cedric Ziel

laravel artisan laravel5

04/01 2016

dev-AV-8

dev-AV-8

Artisan for the web. Execute Artisan command on a webpage.

  Sources   Download

MIT

The Requires

 

by Cedric Ziel

laravel artisan laravel5

04/01 2016

0.0.2

0.0.2.0

Artisan for the web. Execute Artisan command on a webpage.

  Sources   Download

MIT

The Requires

 

by Cedric Ziel

laravel artisan laravel5

04/01 2016

0.0.1

0.0.1.0

Artisan for the web. Execute Artisan command on a webpage.

  Sources   Download

MIT

The Requires

 

by Cedric Ziel

laravel artisan laravel5