404labfr / 404labfr/laravel-impersonate

Seeing 403's after basic Laravel 9 install

オープン
#170 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.3k
フォーク
235
PR マージ指標
30日以内にマージされた PR はありません

説明

Using Laravel 9.34.0 and stock `session` auth driver.

Installed the package:
```
"lab404/laravel-impersonate": "^1.7",
```

Added `Impersonate` trait to `app\User.php`:
```
use HasFactory, Notifiable, Impersonate;
```

Added the route helper at the top of `routes/web.php`:
```
Route::impersonate();
```

Navigating to `/impersonate/take/2` displays the "403 | Forbidden" error page.
Navigating to `/` shows I am impersonating user `2` as expected.
Navigating to `/impersonate/leave` again displays the "403 | Forbidden" error page.
Navigating to `/` shows I am logged in as the original user again.

Any idea why the impersonate routes are not redirecting and instead returning a 403?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。