src/commands/DatabaseBackup.php
public function fire()
	{
		$this->info('Backing up MySQL database...');
		$host      = Config::get('database.connections.mysql.host');
		$database  = Config::get('database.connections.mysql.database');
		$username  = Config::get('database.connections.mysql.username');
		$password  = Config::get('database.connections.mysql.password');
		$file      = ($this->argument('file')) ? $this->argument('file') : $database . '.sql';
		chdir(base_path());
		$this->exec('mysqldump -h ' . $host . ' -u ' . $username . ' -p\'' . $password . '\' ' . $database . ' > ' . $file);
		$this->info('...finished.  Dump placed in ' . base_path() . '/' . $file);
	}
public function fire()
	{
		$this->info('Backing up MySQL database...');
		$host      = Config::get('database.connections.mysql.host');
		$database  = Config::get('database.connections.mysql.database');
		$username  = Config::get('database.connections.mysql.username');
		$password  = Config::get('database.connections.mysql.password');
		$file      = ($this->argument('file')) ? $this->argument('file') : $database . '.sql';
		chdir(base_path());
		$this->exec('mysqldump -h ' . $host . ' -u ' . $username . ' -p\'' . $password . '\' ' . $database . ' > ' . $file);
		$this->info('...finished.  Dump placed in ' . base_path() . '/' . $file);
	}
Execute the console command.

@return mixed