F
Filament8mo 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_8mo ago
Can you access another project or just this one ?
Eth
Eth8mo 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.8mo ago
you do have your .env file?
einnlleinhatt_
einnlleinhatt_8mo ago
Can you access the root laravel without/admin ? squint
Eth
Eth8mo ago
Yes Yes I also can login but can’t in /admin
einnlleinhatt_
einnlleinhatt_8mo ago
What do you mean you can login ?
Eth
Eth8mo ago
I meant i can login in root but in /admin/login it’ll show the forbidden page
No description
einnlleinhatt_
einnlleinhatt_8mo ago
So after you sign-in it give you 403 status?
Eth
Eth8mo ago
Yes
einnlleinhatt_
einnlleinhatt_8mo ago
That's weird, seems like your account doesn't have access to that panel
einnlleinhatt_
einnlleinhatt_8mo ago
Maybe you can try that.
Quin.
Quin.8mo ago
use Filament\Panel; public function canAccessPanel(Panel $panel): bool { return true; } try this first
Eth
Eth8mo ago
It worked after removing “&& $this->hasVerifiedEmail()”🫠, thanks
No description
Eth
Eth8mo ago
Indeed, it worked after removing “&& $this->hasVerifiedEmail()”
einnlleinhatt_
einnlleinhatt_8mo ago
Ohh I tho it was fresh install from the oven 🤣 Cause by default you don't need to change anything
Quin.
Quin.8mo ago
no problem man! Have fun
Eth
Eth8mo ago
Ikr this is why i was so confused, thought its something about XAMPP as usual….