use App\Models\AosSeed;
use Illuminate\Http\Request;
+use Illuminate\Support\Facades\Artisan;
class AosSeedController extends Controller
{
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));
+ }
+
+ return $seed->toJson();
+ }
+
}