+ $seed->makeHidden('settings');
+ }
+
+ return $seed->toJson();
+ }
+
+ public function retry($hash) {
+ $seed = AosSeed::where('hash', '=', $hash)->firstOrFail();
+
+ if ($seed->status == 'error') {
+ $seed->status = 'pending';
+ $seed->save();
+ Artisan::call('aos:generate '.intval($seed->id));