ou need to map routes in your RouteServiceProvider.php, Check the example of web routes.

   /**
     * Define the "web" routes for the application.
     *
     * These routes all receive session state, CSRF protection, etc.
     *
     * @return void
     */
    protected function mapWebRoutes()
    {
        Route::group([
            'middleware' => 'web',
            'namespace' => $this->namespace,
        ], function ($router) {
            require base_path('routes/web.php');
        });
    }

Sumber: https://stackoverflow.com/questions/42390913/laravel-5-3-and-5-4-custom-route-file

Advertisements