#i want to change routes login in filament

8 messages · Page 1 of 1 (latest)

gilded bloom
#

by default the login page locate in /admin/login, i think this doesnt make sanse for role user to login, so i decide to replace the login routes from /admin/login to /admin, but it doesnt work for me, can u help me?

in admin panel i already add

  return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->login('/login')
            ->colors([
                'primary' => Color::Blue,
            ])
fleet yokeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

halcyon latch
#

Try it

  return $panel
            ->default()
            ->id('admin')
            ->path('/')
            ->login()
            ->colors([
                'primary' => Color::Blue,
            ]);
gilded bloom
#

new error occur

#

eh it is works after i delete route for loigin in web.php @halcyon latch

#

hmm, but i also want /admin as base path of admin dashboard @halcyon latch , any suggest?

halcyon latch
#

U can make new panel for User. AdminPanelProvider using path (admin) && UserPanelProvider using path(/)

gilded bloom
#

actually for user, we use page view in laravel instead of using PanelProvider