How to intercept the prefix, and make available globally on the controller in Laravel?

Organized Routing
Route::group( array('prefix'=> '{lang}'), function(){
 Route::get('/cms/users/', 'cms\UserController@index');

Now I want somehow to intercept globally for the controller, I think you need to dig in the direction
protected $lang;

 public function __construct($lang)
 $this->lang = $lang;

But unfortunately it won't start, only to each function separately:
public function index($lang)

How to do that would $lang - prefix, was a constant variable in the controller for all functions? Is there a solution? I will be grateful!
July 9th 19 at 11:16
3 answers
July 9th 19 at 11:18
not 100% but I remember something like that
July 9th 19 at 11:20
public function __construct()
 $lang = \Route::getCurrentRoute()->parameter('lang');
 \View::share('lang', $lang);

Here is the solution, with the opportunity to distribute to all views, thanks
July 9th 19 at 11:22
Just gonna leave this here

Find more questions by tags LaravelMVC