One of my files contains all my redirects. I am trying to access the routes by their name to use on the redirect but I am getting an error saying the route name doesn't exist. Is this possible?
Try doing Route::name('resources.') (suffix with dot). Then, you can use the route name prefixed with that group name. Example: route('resources.about')
Route::name('resources.') // <- Prefixes the route name e.g. resources.about
->prefix('resources') // <- Prefixes the route path URL e.g. /resources/about
->group(base_path('routes/web/resources.php'));
You can also run php artisan route:list command to see the list of routes, their controller and name.