protected function writeFile($stub, $controller, $path)
	{
		if (str_contains($controller, '\\'))
		{
			$this->makeDirectory($controller, $path);
		}

		$controller = str_replace('\\', DIRECTORY_SEPARATOR, $controller);

		if ( ! $this->files->exists($fullPath = $path."/{$controller}.php"))
		{
			return $this->files->put($fullPath, $stub);
		}
	}
protected function writeFile($stub, $controller, $path)
	{
		if (str_contains($controller, '\\'))
		{
			$this->makeDirectory($controller, $path);
		}

		$controller = str_replace('\\', DIRECTORY_SEPARATOR, $controller);

		if ( ! $this->files->exists($fullPath = $path."/{$controller}.php"))
		{
			return $this->files->put($fullPath, $stub);
		}
	}
protected function writeFile ( $ stub , $ controller , $ path ) { if ( str_contains ( $ controller , '\\' ) ) { $ this -> makeDirectory ( $ controller , $ path ) ; } $ controller = str_replace ( '\\' , DIRECTORY_SEPARATOR , $ controller ) ; if ( ! $ this -> files -> exists ( $ fullPath = $ path . "/{$controller}.php" ) ) { return $ this -> files -> put ( $ fullPath , $ stub ) ; } }
Write the completed stub to disk.

@param  string  $stub
@param  string  $controller
@param  string  $path
@return void
Write the completed stub to disk .