src/Console/Commands/GenerateModels.php
public function handle()
    {
        $path = (($this->option('path')) ? $this->option('path') : app_path()) . '/';
        $model = $this->argument('model');
        $files = $this->getFiles($model);
        foreach ($files as $file) {
            $file_path = $path.$file;
            if ($this->writeable($file_path)) {
                $this->write($file, $file_path);
                $this->info($file.' saved to '.$file_path);
            }
        }
    }
public function handle()
    {
        $path = (($this->option('path')) ? $this->option('path') : app_path()) . '/';
        $model = $this->argument('model');
        $files = $this->getFiles($model);
        foreach ($files as $file) {
            $file_path = $path.$file;
            if ($this->writeable($file_path)) {
                $this->write($file, $file_path);
                $this->info($file.' saved to '.$file_path);
            }
        }
    }
Execute the console command.

@return mixed