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