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