PHP code example of xindong888 / laravel-router

1. Go to this page and download the library: Download xindong888/laravel-router 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/ */

    

xindong888 / laravel-router example snippets



[
'providers' => [
//.................注释掉原有的路由服务提供者
//App\Providers\RouteServiceProvider::class,
//.................添加万能路由服务提供者
xindong888\Laravel\Providers\RouteServiceProvider::class
]]


class RouteServiceProvider extends \xindong888\Laravel\Providers\RouteServiceProvider
{

    public function boot()
    {
        parent::boot();
    }

}