0

我正在使用 Laravel 8.3,并且我已经安装了带有 Fortify 包的 Jetstream 以在前端登录,这是我可以登录的工作,但我需要安装包 Bazar:https ://github.com/conedevelopment/bazar 在 bazar 的那个文档中,据说要安装微风,我想留在jetstream上不要让代码变得很大。当我登录时,尝试使用 /bazar 访问 url,但说403 This action is unauthorized. 我尝试安装 clean bazar,并使用微风,我做错了什么?

这是composer.json:

    "require": {
    "php": "^7.3|^8.0",
    "conedevelopment/bazar": "^0.9.1",
    "donatello-za/rake-php-plus": "^1.0",
    "fideloper/proxy": "^4.4",
    "fruitcake/laravel-cors": "^2.0",
    "guzzlehttp/guzzle": "^7.0.1",
    "intervention/image": "^2.6",
    "laravel/framework": "^8.40",
    "laravel/jetstream": "^2.3",
    "laravel/sanctum": "^2.6",
    "laravel/socialite": "^5.2",
    "laravel/tinker": "^2.5",
    "laravel/ui": "^3.3",
    "laravelcollective/html": "^6.2",
    "livewire/livewire": "^2.5",
    "yoeunes/toastr": "^1.2"
},

文档图片:在此处输入图像描述

4

1 回答 1

0

问题不是登录方法 Breeze 或 Jetstream,两者都使用 laravel auth,问题是 Bazar,在 config/bazar.php,你有一个密钥

'admins' => [
        'xx@m.com',
    ],

在那里您需要添加电子邮件才能获得查看 Bazar 后端的权限

于 2022-02-08T15:49:32.567 回答