createBackup() public method

Will be assigned with the current timestamp.
public createBackup ( ) : boolean
return boolean
 /**
  * @return \Illuminate\Http\RedirectResponse
  *
  * Creates a backup of the current .env.
  */
 public function createBackup()
 {
     $env = new Env();
     $env->createBackup();
     return back()->with('dotenv', trans('dotenv-editor::views.controller_backup_created'));
 }