mirror of
https://github.com/twinpath/app.git
synced 2026-01-26 13:21:59 +07:00
chore: cleanup project structure and update readme for beta release
This commit is contained in:
@@ -252,6 +252,8 @@ BATCH;
|
||||
'valid_to' => $result['valid_to'] ?? null,
|
||||
]);
|
||||
|
||||
\App\Events\DashboardStatsUpdated::dispatch(Auth::id());
|
||||
|
||||
return redirect()->route('certificate.index')->with('success', 'Certificate generated successfully.');
|
||||
} catch (\Exception $e) {
|
||||
return redirect()->back()->withInput()->with('error', $e->getMessage());
|
||||
@@ -285,6 +287,8 @@ BATCH;
|
||||
'created_at' => now(), // Refresh timestamp
|
||||
]);
|
||||
|
||||
\App\Events\DashboardStatsUpdated::dispatch(Auth::id());
|
||||
|
||||
return redirect()->route('certificate.index')->with('success', 'Certificate regenerated successfully.');
|
||||
} catch (\Exception $e) {
|
||||
return redirect()->route('certificate.index')->with('error', 'Failed to regenerate: ' . $e->getMessage());
|
||||
@@ -348,6 +352,9 @@ BATCH;
|
||||
{
|
||||
$this->authorizeOwner($certificate);
|
||||
$certificate->delete();
|
||||
|
||||
\App\Events\DashboardStatsUpdated::dispatch(Auth::id());
|
||||
|
||||
return redirect()->route('certificate.index')->with('success', 'Certificate deleted successfully.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user