brandstudio/localization

BrandStudio localization

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

This package is auto-updated.

Last update: 2024-04-30 00:42:14 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'));
        });
    }