modelNames['model_path']; $modelDirectory = $this->makeDirectory(app_path($modelPath)); $this->generateFile( $modelDirectory.'/'.$this->modelNames['model_name'].'.php', $this->getContent('model') ); $this->command->info($this->modelNames['model_name'].' model generated.'); } /** * {@inheritDoc} */ public function getContent(string $stubName) { $modelFileContent = $this->getStubFileContent($stubName); $userModel = config('auth.providers.users.model'); if ('App\User' !== $userModel) { $modelFileContent = str_replace('App\User', $userModel, $modelFileContent); } return $this->replaceStubString($modelFileContent); } }