More adjustments

This commit is contained in:
Lance Pioch 2024-03-26 22:36:32 -04:00
parent 090b2e6f1b
commit e50e3509bd

View File

@ -38,21 +38,21 @@ class ListEggs extends ListRecords
$newEgg = $eggImportService->handle($eggFile); $newEgg = $eggImportService->handle($eggFile);
} catch (Exception $exception) { } catch (Exception $exception) {
Notification::make() Notification::make()
->title("Imported egg successfully: {$exception->getMessage()}") ->title('Egg Import Failed')
->success() ->danger()
->send(); ->send();
report($exception);
return; return;
} }
Notification::make() Notification::make()
->title("Imported egg successfully: $newEgg->name") ->title("Egg Import Success: $newEgg->name")
->success() ->success()
->send(); ->send();
redirect()->route('filament.admin.resources.eggs.edit', [$newEgg]); redirect()->route('filament.admin.resources.eggs.edit', [$newEgg]);
// $livewire->redirect(route('filament.admin.resources.eggs.edit', [$newEgg]));
}) })
]; ];
} }