PHP code example of cedricziel / l5-webartisan

1. Go to this page and download the library: Download cedricziel/l5-webartisan library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cedricziel / l5-webartisan example snippets


    CedricZiel\Webartisan\WebartisanServiceProvider:class,

    /**
     * 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) {
                    'as'         => 'artisan',
                'middleware' => 'auth',
                'uses'       => 'WebartisanController@show'
            ]);

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