PHP code example of ozanakman / laravel-multilingual
1. Go to this page and download the library: Download ozanakman/laravel-multilingual 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/ */
ozanakman / laravel-multilingual example snippets
return [
/*
* How we should treat urls to get the selected language?
* http://{domain}.site.com
* http://site.com/{path}
*
* Supported: "domain", "path"
*/
'pattern' => 'path',
/**
* Localization middleware to handle user redirects.
*/
'middleware' => OzanAkman\Multilingual\Middleware\Localize::class,
];