404 NOT FOUND after initial Filament install
I am starting a new app a trying to use Filament, I did the initial install as recommanded on https://filamentphp.com/docs/3.x/panels/installation. I is a new project where I just did the basic lavarel install and a first migration with blueprint.
I do have a 404 NOT FOUND error on my local when reaching http://127.0.0.1:8000/admin or http://localhost:8000/admin My Console does not show much error I have :
cleared my cache on my browser php artisan cache:clear php artisan optimize php artisan view:clear php artisan filament:clear-cached-components My web.php is empty app/Providers/AppServiceProvider.php app/Providers/Filament/AdminPanelProvider.php will follow under What am I missing to get the Filament Magic ? Can someone help ? Thank you for your support
I do have a 404 NOT FOUND error on my local when reaching http://127.0.0.1:8000/admin or http://localhost:8000/admin My Console does not show much error I have :
cleared my cache on my browser php artisan cache:clear php artisan optimize php artisan view:clear php artisan filament:clear-cached-components My web.php is empty app/Providers/AppServiceProvider.php app/Providers/Filament/AdminPanelProvider.php will follow under What am I missing to get the Filament Magic ? Can someone help ? Thank you for your support
50 Replies
AdminPanelProvider.php
Panel looks good.
APP_URL
matches your domain? Does plain Laravel work?This is from my
/config/app.php
Lavarel seems to be working, but shows 404 NOT FOUND
on
http://localhost:8000/
and http://localhost:8000/admin/
I believe this is normal as I deleted the route from web.php
Here is the error from my console
Whats the URL on your
.env
though?APP_URL=http://localhost
!== APP_URL=http://localhost:8000
Can you try that?Did you change the
.env
to http://localhost:8000
?Yes, getting same error, I also restarted the server
What dev environment are you using?
You mean Lavarel version ?
Also: Does
artisan route:list
show any Filament routes? /admin/login
for example
No. What server and OS are you running on your machine?Here is the route list I had to comment Modell::unguard(); from AppServiceProvider as it was throwing an error
Hm. Looks fine to me
Sonoma 14.1.1, with M1 chip
And built in PHP server?
Or
artisan serve
?with artisan serve
Hm. I think that should be supported. I am running out of ideas.
When you go to
http://localhost:8000/up
is that working?
Is there anything else already running on port 8000?How does your composer.json looks like?
That is what I get on http://localhost:8000
Is
artisan serve
logging your requests to the console?composer.json
Hm. That's really weird.
I tried to re install 3 times from scratch... other Lavaler apps are working fine on my local. Thank you Denis for your help
Are the panels registerd in the providers.php (./bootstrap/providers.php)
The route command shows Filament routes, so it should be
True, missed that
Just a sanity check: You are in the right project? 🙈
yes 🙂
🙂
can you try
php artisan serve --port=8123
?providers.php
Getting the same with http://127.0.0.1:8123
Realy strange
Can my Models create the issue ?
Dont think so, it is route and dont think your model creates routes
Try to create a route /test in the web.php and check if it renders something
I just added this in my web.php but it does not work, same error
and if you run
php artisan route:clear
I did and restrted artisan serve but nothing changes, sorry..
Fresh laravel project? Did you do something in the appserviceprovider?
Did you try restarting your computer? 🙈
I added Modell::unguard(); and then commented it as it was throwing some error.
It's throwing an error because you added two
l
at the end. But that shouldn't matter here. If Laravels normal routing doesn't work you have different issues.
Can we start over?
1. Restart your computer
2. Create a new Laravel project (without Filament)
3. Add a /test
route check whether that works
4. Add Filament, Check whether that works.ok, I'll do that
After restarting my computer + php artisan config:cache
Thank you
Turning it on and off again does wonders 😅
Thank you, I was getting crazy 🙂 Have a great day
Thanks. You, too.