brandstudio/localization

BrandStudio localization

dev-master 2022-11-03 12:48 UTC

This package is auto-updated.

Last update: 2024-10-30 01:59:35 UTC


README

use BrandStudio\Localization\Facades\Localization;


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