%PDF- %PDF-
Direktori : /proc/thread-self/root/www/loslex_o/test/app/Http/Controllers/ |
Current File : //proc/thread-self/root/www/loslex_o/test/app/Http/Controllers/LocaleController.php |
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Redirect; class LocaleController extends Controller { public function switchLang($lang) { if (array_key_exists($lang, Config::get('app.languages'))) { Session::put('locale', $lang); } return Redirect::back(); } }