/** * Create routes file. * * @return void */ protected function createRoutesFile() { $file = $this->directory . '/routes.php'; $contents = $this->getStub('routes'); $this->laravel['files']->put($file, str_replace('DummyNamespace', Admin::controllerNamespace(), $contents)); $this->line('<info>Routes file was created:</info> ' . str_replace(base_path(), '', $file)); }
/** * Prepare admin route group attributes. * * @return void */ protected function prepareAttributes() { $this->attributes = ['prefix' => config('admin.prefix'), 'namespace' => Admin::controllerNamespace(), 'middleware' => ['web', 'admin.auth']]; }