F
Filament14mo ago
Eth

what’s the possible issue

I’ve tried everything, reinstalling laravel, composer and filament but it keeps showing me the forbidden page (I’m using XAMPP)
No description
18 Replies
einnlleinhatt_
einnlleinhatt_14mo ago
Can you access another project or just this one ?
Eth
EthOP14mo ago
This is my first project but I’ve made others with the same steps in the documentation and it’s the same
Quin.
Quin.14mo ago
you do have your .env file?
einnlleinhatt_
einnlleinhatt_14mo ago
Can you access the root laravel without/admin ? squint
Eth
EthOP14mo ago
Yes Yes I also can login but can’t in /admin
einnlleinhatt_
einnlleinhatt_14mo ago
What do you mean you can login ?
Eth
EthOP14mo ago
I meant i can login in root but in /admin/login it’ll show the forbidden page
No description
einnlleinhatt_
einnlleinhatt_14mo ago
So after you sign-in it give you 403 status?
Eth
EthOP14mo ago
Yes
einnlleinhatt_
einnlleinhatt_14mo ago
That's weird, seems like your account doesn't have access to that panel
einnlleinhatt_
einnlleinhatt_14mo ago
Maybe you can try that.
Quin.
Quin.14mo ago
use Filament\Panel; public function canAccessPanel(Panel $panel): bool { return true; } try this first
Eth
EthOP14mo ago
It worked after removing “&& $this->hasVerifiedEmail()”🫠, thanks
No description
Eth
EthOP14mo ago
Indeed, it worked after removing “&& $this->hasVerifiedEmail()”
einnlleinhatt_
einnlleinhatt_14mo ago
Ohh I tho it was fresh install from the oven 🤣 Cause by default you don't need to change anything
Quin.
Quin.14mo ago
no problem man! Have fun
Eth
EthOP14mo ago
Ikr this is why i was so confused, thought its something about XAMPP as usual….

Did you find this page helpful?