app/Providers/RouteServiceProvider.php
/**
     * Define the "api" routes for the application.
     *
     * These routes are typically stateless.
     *
     * @return void
     */
Define the "api" routes for the application.
These routes are typically stateless.

@return void
Define the " api " routes for the application . These routes are typically stateless . @return void
protected function mapApiRoutes()
    {
        Route::group([
            'middleware' => 'api',
            'namespace' => $this->namespace,
            'prefix' => 'api'
        ], function ($router) {
            $this->requireRouteFiles('api.php');
        });
    }
protected function mapApiRoutes ( ) { Route :: group ( [ 'middleware' => 'api' , 'namespace' => $ this -> namespace , 'prefix' => 'api' ] , function ( $ router ) { $ this -> requireRouteFiles ( 'api.php' ) ; } ) ; }
Define the "api" routes for the application.
Define the " api " routes for the application .