Alex

Results 15 comments of Alex

Same problem here, and I'm using sanctum ... any workaround ?

@Arne1303 ... I got this error App\Providers\AuthServiceProvider::App\Providers\{closure}(): Argument #1 ($app) must be of type App\Providers\Application, Illuminate\Foundation\Application given, called in pointing to your line: function (Application $app, $name, array $config) use...

I don't understand ... I created the first piece of code in app folder Auth/SessionGuard.php and then I add the second piece in the boot() function of my AuthServiceProvider, now...

Ok, I noticed the Application namespace ... and I added ``` \Illuminate\Foundation\Application $app, ... ```

Ok, I tested it , but it stills logs out when I "leave impersonation"

Ok, working !!! But I had to use my leave-impersionation method (I mean, not using the route('impersonate.leave') provided by the library, and put it in a "non admin middleware" scope,...

Ok, I found some things ... I have realized I have to add the extraColumns ALSO in the "datatables" action in the Controller. That's ok ... but I don't understand...

Unfortunately, it still logs out when I leave impersonation

@Arne1303 (and @writehow) Your code works ... but it has a side effect: no events of Auth (or sessionguard) are fired. If I use your code, the bug we are...

You mean this patch, right ? https://github.com/404labfr/laravel-impersonate/pull/163/commits/a306583cd8e2294082d0a272316dda99ca8d1169