hello I’m using backpack page manager and the auth route logout is conflicting with it
as u can see in the picture it’s assuming that logout is a page with a slug and trying to get its data.
I tried to exclude the ‘logout’ from the pages route slug but didn’t work
My failed attempt:
Route::get('/{page:slug}', [SiteController::class, 'singlePage'])
->where('slug', '^(?!logout).*$')
->name('single_page');
2
Answers
Please make sure Auth routes comes first.
That’s most probably the issue.
Side Note
Take a look at Laravel Backpack Page Manager, it may be enough for what you need 👌
I think
slug
should bepage
should be