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

0.0.2 2016-01-04 16:06 UTC

This package is auto-updated.

Last update: 2022-07-28 06:36:44 UTC


Provides a browser-based artisan console for your application.


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


Add the ServiceProvider to config/app.php:


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

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

     * 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
            '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).

This library is licensed under the MIT License.