404labfr / 404labfr/laravel-impersonate
Impersonation breaks down when calling the route('impersonate', $id) in vue
- Lingua principale
- PHP
- Stelle
- 2.3k
- Fork
- 235
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi,
I have a Laravel project that runs on Inertia/Jetstream + Vue and I installed impersonate following the procedure, but maybe I missed something.
I followed the **Simple usage** guidelines, creating a get route in web.php like this:
`Route::get('/impersonate/{id}', function($id){
Auth::user()->impersonate($id);
})->name('impersonate');`
But when I call it I get this error:

Following the **Using the built-in controller** guidelines, instead, I get the following error in console:

this one is get calling route('impersonate', user.id) in my vue template.
Did I miss something or am I doing something wrong? Thanks.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.