404labfr / laravel-impersonate

Laravel Impersonate is a plugin that allows you to authenticate as your users.
https://marceau.casals.fr
2k stars 202 forks source link

Routes not working on Laravel 8 with php 8 #142

Closed robertosanval closed 3 years ago

robertosanval commented 3 years ago

I get this working fine but routes on blade templates, I get the error

Symfony\Component\Routing\Exception\RouteNotFoundException
Route [impersonate] not defined.

When I try to use

{{ route('impersonate', $user->id()) }}

Any ideas?

robertosanval commented 3 years ago

Forget this! I was missing to call Route::impersonate(); on my routes config file.