/**
  * @author EB
  * @param Installation $installation
  * @return \App\Basket\Template
  */
 public static function fetchDefaultTemplateForInstallation(Installation $installation)
 {
     try {
         return $installation->templates()->firstOrFail();
     } catch (ModelNotFoundException $e) {
         return Template::first();
     }
 }
 /**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     $template = \App\Basket\Template::first();
     $template->html = file_get_contents('doc/resources/default_email_template.blade.php');
     $template->save();
 }