protected function writeCommand($file, $stub)
	{
		if ( ! file_exists($file))
		{
			$this->files->put($file, $this->formatStub($stub));

			$this->info('Command created successfully.');
		}
		else
		{
			$this->error('Command already exists!');
		}
	}
protected function writeCommand($file, $stub)
	{
		if ( ! file_exists($file))
		{
			$this->files->put($file, $this->formatStub($stub));

			$this->info('Command created successfully.');
		}
		else
		{
			$this->error('Command already exists!');
		}
	}
protected function writeCommand ( $ file , $ stub ) { if ( ! file_exists ( $ file ) ) { $ this -> files -> put ( $ file , $ this -> formatStub ( $ stub ) ) ; $ this -> info ( 'Command created successfully.' ) ; } else { $ this -> error ( 'Command already exists!' ) ; } }
Write the finished command file to disk.

@param  string  $file
@param  string  $stub
@return void
Write the finished command file to disk .