PHP code example of jawabapp / localization

1. Go to this page and download the library: Download jawabapp/localization library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jawabapp / localization example snippets


use Jawabapp\Localization\Libraries\Localization;

Route::prefix(Localization::routePrefix())
        ->middleware('web')
        ->group(base_path('routes/web.php'));

protected $middlewareGroups = [
    'web' => [
        \Jawabapp\Localization\Http\Middleware\Web\Localization::class,
    ],

    'api' => [
        \Jawabapp\Localization\Http\Middleware\Api\Localization::class,
    ],
];