Пример #1
0
 public function __construct()
 {
     Meta::title(__('Admin Area'));
     $route = Route::currentRouteName();
     $database = $route === 'admin.database';
     View::share(['ROUTE' => $route, 'TABLE' => $database ? Request::segment(3) : null, 'SECTION' => $database ? Request::segment(4) : null, 'LOCALES' => config('gettext.locales'), 'LOCALE' => $this->locale = Library\Helpers::locale(), 'I' => $this->user = Auth::user()]);
 }
Пример #2
0
 public function __construct()
 {
     $this->user = Auth::user();
     $this->locale = Library\Helpers::locale();
 }