F
Filament3mo ago
Taz416

Route Problem

Hi. Been away from Filament doing other projects and have now started a new one using Laravel 11 and Filament 3. Basic install. Everything seems to have installed OK but I get a 404 not found when going to /admin/login. I get all OK from the filament install and the service provider is registered. Any idea of what this could be?
Solution:
So maybe an issue with the server setup?
Jump to solution
22 Replies
Dennis Koch
Dennis Koch3mo ago
Can you share your AppPanelProvider?
Taz416
Taz4163mo ago
I don't have one ?? I have a Filament/AdminPanelProvider.php
Dennis Koch
Dennis Koch3mo ago
AdminPanelProvider probably 😅
Taz416
Taz4163mo ago
I can't paste the contents - too large - I will upload the file
Dennis Koch
Dennis Koch3mo ago
Does it have ->path('/admin') and ->login()?
Taz416
Taz4163mo ago
yes
Dennis Koch
Dennis Koch3mo ago
Hm weird.
Taz416
Taz4163mo ago
screenshot
No description
Dennis Koch
Dennis Koch3mo ago
Any routes registered in routes/web.php already?
Taz416
Taz4163mo ago
just '/' to get to the welcome page which works fine maybe I should trash Filament and re-install. It is a new site so no worries there
Dennis Koch
Dennis Koch3mo ago
You could try. Not sure whether that solves your issue.
Taz416
Taz4163mo ago
php artisan route:list shows the admin routes as being registered
Dennis Koch
Dennis Koch3mo ago
It's Laravel's 404? And the / route works?
Taz416
Taz4163mo ago
no the server / works
Dennis Koch
Dennis Koch3mo ago
So it's not hitting the Laravel app. It this local?
Taz416
Taz4163mo ago
live
Solution
Dennis Koch
Dennis Koch3mo ago
So maybe an issue with the server setup?
Taz416
Taz4163mo ago
https://gapauto.servix.link/admin/login laravel works at / so I dunno don't spend any more time though - I will reinstall and see what shakes loose
Dennis Koch
Dennis Koch3mo ago
Maybe try adding a route like /first/second and see whether it works / is always a bit special. I think it's your server setup that's not directing all requests to public/index.php
Taz416
Taz4163mo ago
could be - I will look there. Thanks
Soundmit
Soundmit3mo ago
hi, i have the same problem in local all it's ok i'm on siteground, subdomain of my main domain doing by pulling my gitlab repository, composer update i have 2 panels admin and customer, both Error 500 (server error not laravel) web routes
 
Route::get('/', function () {
return view('welcome');
});

Route::get('/regular_invoice/{record}/download', [DownloadRegularController::class, 'download'])->name('repair.pdf.regular');
Route::get('/aggregate_invoice/{record}/download', [DownloadAggregateController::class, 'download'])->name('repair.pdf.aggregate');
Route::get('/receipt/{record}/download', [PdfController::class, 'downloadReceipt'])->name('repair.pdf.receipt');
Route::get('/label/{record}/download', [PdfController::class, 'downloadLabel'])->name('repair.pdf.label');
Route::get('/authorization/{record}/download', [PdfController::class, 'downloadAuthorization'])->name('repair.pdf.authorization');
Route::middleware('signed')->get('customer/invitation/{invitation}/accept', UserAcceptInvitation::class)->name('invitation.accept');
Route::middleware('signed')->get('admin/invitation/{invitation}/accept', TechnicianAcceptInvitation::class)->name('tech.invitation.accept');
 
Route::get('/', function () {
return view('welcome');
});

Route::get('/regular_invoice/{record}/download', [DownloadRegularController::class, 'download'])->name('repair.pdf.regular');
Route::get('/aggregate_invoice/{record}/download', [DownloadAggregateController::class, 'download'])->name('repair.pdf.aggregate');
Route::get('/receipt/{record}/download', [PdfController::class, 'downloadReceipt'])->name('repair.pdf.receipt');
Route::get('/label/{record}/download', [PdfController::class, 'downloadLabel'])->name('repair.pdf.label');
Route::get('/authorization/{record}/download', [PdfController::class, 'downloadAuthorization'])->name('repair.pdf.authorization');
Route::middleware('signed')->get('customer/invitation/{invitation}/accept', UserAcceptInvitation::class)->name('invitation.accept');
Route::middleware('signed')->get('admin/invitation/{invitation}/accept', TechnicianAcceptInvitation::class)->name('tech.invitation.accept');
link https://demo.alphalab.audio .htaccess (suggested buy the customer care of siteground)
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Reindirizza le barre finali se non è una cartella ...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Reindirizza le barre finali se non è una cartella ...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Taz416
Taz4163mo ago
@Dennis Koch It was in fact a stupid mistake with the server vhost setup. Not sure why I was thinking this could not be if "/" route worked correctly.
Want results from more Discord servers?
Add your server
More Posts