Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 /**
  * Prepare admin route group attributes.
  *
  * @return void
  */
 protected function prepareAttributes()
 {
     $this->attributes = ['prefix' => config('admin.prefix'), 'namespace' => Admin::controllerNamespace(), 'middleware' => ['web', 'admin.auth']];
 }