F
Filament16mo ago
Maksym

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
KA
KA16mo ago
If you dont need the filament dashboard, then use filament as livewire component
Maksym
MaksymOP16mo ago
Tried modifying the AdminPanelProvider, but another error I got. I mean I need the filament dashboard and auth system.
Maksym
MaksymOP16mo ago
Sorry, my trouble is routing, not a themes.
ConnorHowell
ConnorHowell16mo ago
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
Maksym
MaksymOP16mo ago
you are right.
KA
KA16mo ago
change ->path('anything') in your panel provider
Maksym
MaksymOP16mo ago
But the I got the bebow error. Route [filament.admin.pages.dashboard] not defined.
ConnorHowell
ConnorHowell16mo ago
What does your adminpanelprovider look like?
Maksym
MaksymOP16mo ago
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.
Dennis Koch
Dennis Koch16mo ago
Mostly some caching or similar issue.
ConnorHowell
ConnorHowell16mo ago
👆 that or you've got a custom page or something calling for that route. Maybe share the flare url?
Maksym
MaksymOP16mo ago
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'); });
KA
KA16mo ago
"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
einnlleinhatt_
einnlleinhatt_16mo ago
Just remove the welcome route
Maksym
MaksymOP16mo ago
let me try Another error. RouteNotFoundException PHP 8.2.4 10.32.1 Route [login] not defined.
Dennis Koch
Dennis Koch16mo ago
Just define the route and redirect to Filament Login. It's a default route from Laravel auth

Did you find this page helpful?