feat(event): add slug field to events and update related resources and routes

This commit is contained in:
2026-09-22 10:32:25 -03:00
parent 03bb7709c4
commit 506f8a5176
8 changed files with 54 additions and 5 deletions

View File

@@ -6,9 +6,9 @@ use Illuminate\Support\Facades\Route;
require __DIR__.'/adminapp.php';
Route::prefix('tenants/{tenant:codigo}')->group(function (): void {
Route::prefix('tenants/{tenant:codigo}')->scopeBindings()->group(function (): void {
Route::get('events', [PublicEventController::class, 'index']);
Route::get('events/{event}', [PublicEventController::class, 'show']);
Route::get('events/{event:slug}', [PublicEventController::class, 'show']);
});
Route::middleware('auth:sanctum')->post(