public function up() { $theme = Theme::where('name', $this->name)->where('version', $this->version)->first(); if (!$theme) { throw new Exception('Invalid theme provided'); } $this->settings($theme); }
/** * Reverse the migrations. */ public function down() { $theme = Theme::where('name', $this->name)->delete(); }