app/Providers/RouteServiceProvider.php
/**
     * Define your route model bindings, pattern filters, etc.
     *
     * @return void
     */
Define your route model bindings, pattern filters, etc.
@return void
Define your route model bindings pattern filters etc . @return void
public function boot()
    {
        $this->configureRateLimiting();
        $this->routes(function () {
            Route::prefix('api')
                ->middleware('api')
                ->namespace($this->namespace)
                ->group(base_path('routes/api.php'));
            Route::middleware('web')
                ->namespace($this->namespace)
                ->group(base_path('routes/web.php'));
            Route::middleware('web')
                ->namespace($this->namespace)
                ->group(base_path('routes/product.php'));
            Route::middleware('web')
                ->namespace($this->namespace)
                ->group(base_path('routes/category.php'));
        });
    }
public function boot ( ) { $ this -> configureRateLimiting ( ) ; $ this -> routes ( function ( ) { Route :: prefix ( 'api' ) -> middleware ( 'api' ) -> namespace ( $ this -> namespace ) -> group ( base_path ( 'routes/api.php' ) ) ; Route :: middleware ( 'web' ) -> namespace ( $ this -> namespace ) -> group ( base_path ( 'routes/web.php' ) ) ; Route :: middleware ( 'web' ) -> namespace ( $ this -> namespace ) -> group ( base_path ( 'routes/product.php' ) ) ; Route :: middleware ( 'web' ) -> namespace ( $ this -> namespace ) -> group ( base_path ( 'routes/category.php' ) ) ; } ) ; }
Define your route model bindings, pattern filters, etc.
Define your route model bindings pattern filters etc .