Answer the question
In order to leave comments, you need to log in
How to intercept prefix and make it available globally by controller in Laravel?
Organized so Routing
Route::group( array('prefix'=> '{lang}'), function(){
Route::get('/cms/users/', 'cms\[email protected]');
});
protected $lang;
public function __construct($lang)
{
$this->lang = $lang;
}
public function index($lang)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question