pushMiddlewareToGroup('web',GuestUser::class); $this->loadViewsFrom($this->_path.'/resources/themes/adminlte/views/', 'adminlte'); $this->loadTranslationsFrom($this->_path.'/resources/themes/adminlte/lang/', 'adminlte_lang'); $this->loadViewsFrom($this->_path.'/resources/themes/architect/views/', 'architect'); $this->loadViewsFrom($this->_path.'/resources/themes/metronic/views/', 'metronic'); // Enable a Collect::recursive() function \Illuminate\Support\Collection::macro('recursive', function () { return $this->map(function ($value) { if (is_array($value) || is_object($value)) { return collect($value)->recursive(); } return $value; }); }); } /** * Register the application services. * * @return void */ public function register() { if (! $this->_path) { $this->_path = realpath(__DIR__.'/../../'); } } /** * Views copy path. * * @return array */ public function views() { return [ $this->_path.'/resources/views/auth' => resource_path('views/vendor/adminlte/auth'), $this->_path.'/resources/views/errors' => resource_path('views/vendor/adminlte/errors'), $this->_path.'/resources/views/layouts' => resource_path('views/vendor/adminlte/layouts'), $this->_path.'/resources/views/home.blade.php' => resource_path('views/vendor/adminlte/home.blade.php'), $this->_path.'/resources/views/welcome.blade.php' => resource_path('views/welcome.blade.php'), ]; } }