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

Did you find this page helpful?