Exemplo n.º 1
0
 /**
  * Get studly file name
  *
  * @return string
  */
 protected function getFileName()
 {
     $name = parent::getFileName();
     if (!str_contains(strtolower($name), 'controller')) {
         $name .= 'Controller';
     }
     return $name;
 }
Exemplo n.º 2
0
 /**
  * Get seeder name.
  *
  * @return string
  */
 protected function getFileName()
 {
     $end = $this->option('master') ? 'DatabaseSeeder' : 'TableSeeder';
     return parent::getFileName() . $end;
 }
Exemplo n.º 3
0
 /**
  * Get the destination file path.
  *
  * @param  string $name
  *
  * @return string
  */
 protected function getDestinationFilePath($name = '')
 {
     return parent::getDestinationFilePath('request');
 }
Exemplo n.º 4
0
 /**
  * Get the destination file path.
  *
  * @param  string $name
  *
  * @return string
  */
 protected function getDestinationFilePath($name = '')
 {
     return parent::getDestinationFilePath('provider');
 }
Exemplo n.º 5
0
 /**
  * Run the command.
  */
 public function handle()
 {
     parent::handle();
     $this->call('optimize');
 }
Exemplo n.º 6
0
 /**
  * Get the destination file path.
  *
  * @param  string $name
  *
  * @return string
  */
 protected function getDestinationFilePath($name = '')
 {
     return parent::getDestinationFilePath('command');
 }