admin default
I am trying to change the default page to filament page. Using filament auth and dashboard, etc. Is anybody there to help me?
18 Replies
If you dont need the filament dashboard, then use filament as livewire component
Tried modifying the AdminPanelProvider, but another error I got.
I mean I need the filament dashboard and auth system.
you can check this section https://filamentphp.com/docs/3.x/panels/themes
Sorry, my trouble is routing, not a themes.
What exactly did you try changing? What error did you get? It would really help if you shared that…
I assume you’re trying to make filament the root of the site instead of it being /admin or something?
In which case change it so the path is just “/“ in AdminPanelProvider
you are right.
Read this section if that’s what you’re after https://filamentphp.com/docs/3.x/panels/configuration#changing-the-path
change
->path('anything')
in your panel providerBut the I got the bebow error. Route [filament.admin.pages.dashboard] not defined.
What does your adminpanelprovider look like?
after loggin in via /login( filament login), I got a routing error.
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('')
This is my modification in the AdminPanelProvider.Mostly some caching or similar issue.
👆 that or you've got a custom page or something calling for that route. Maybe share the flare url?
No custom page or route.
web.php
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
"Make sure your routes/web.php file doesn't already define the '' or '/' route, as it will take precedence." please read https://filamentphp.com/docs/3.x/panels/configuration#changing-the-path
Just remove the welcome route
let me try
Another error.
RouteNotFoundException
PHP 8.2.4
10.32.1
Route [login] not defined.
Just define the route and redirect to Filament Login. It's a default route from Laravel auth