[英]Laravel Jetstream problem with Bazar vendor package
i am using Laravel 8.3, and i already have installed Jetstream with Fortify package for login on frontend, it's work i can login, but i needit to install package Bazar: https://github.com/conedevelopment/bazar In that docs of bazar, it's say to install breeze, i want to stay on jetstream to don't make code to big.我正在使用 Laravel 8.3,我已经安装了带有 Fortify package 的 Jetstream 用于前端登录,我可以登录,但我需要安装 package Bazar: https://github.com/conedelopment/bazar在 bazar 的文档中,据说要安装微风,我想留在jetstream上,不要把代码弄得太大。 When i am logged in, in try to access url with /bazar, but say
403 This action is unauthorized.
当我登录时,尝试使用 /bazar 访问 url,但显示
403 This action is unauthorized.
I tried to install clean bazar, and work with breeze, what i am doing wrong?我尝试安装 clean bazar,并使用 breeze,我做错了什么?
This is composer.json:这是 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"
},
The problem was not the login method Breeze or Jetstream, both use laravel auth, problem was Bazar, in config/bazar.php, you have a key问题不是登录方法 Breeze 或 Jetstream,两者都使用 laravel auth,问题是 Bazar,在 config/bazar.php 中,你有一个密钥
'admins' => [
'xx@m.com',
],
There you need to add email to have permision to view the backend of Bazar在那里你需要添加 email 才能获得查看 Bazar 后端的权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.