Access Dashboard without Auth

is it possible to access filament dashboard without login and registeration????????????
Solution:
this? ```php Route::get('/auto-login', function () { Auth::loginUsingId(1); return redirect('/admin');...
Jump to solution
12 Replies
awcodes
awcodes17mo ago
No. Without authentication it would just be normal Laravel route, so you wouldn't even need Filament for that.
toeknee
toeknee17mo ago
Otherwise you can create a guest user and auto-login the guest user.
Muhammad Umar Mughal Azeemi
i use only filament dashboard in shopify so what i can do because shopify show error
Dennis Koch
Dennis Koch17mo ago
so what i can
I think toeknee already answered that.
because shopify show error
What error?
Muhammad Umar Mughal Azeemi
Auth guard [auth.sanctum] is not defined. so i cannot view the login and registeration page
Dennis Koch
Dennis Koch17mo ago
Not sure how sanctum is related to Filament. You are using auth.sanctum as your auth guard – probably in config/auth.php – but it doesn't exist?
Muhammad Umar Mughal Azeemi
Auth guard [web] is not defined. that is the right error 'auth' => [ 'guard' => env('FILAMENT_AUTH_GUARD', 'web'), 'pages' => [ 'login' => \Filament\Http\Livewire\Auth\Login::class, ], ], the filament access web guard from auth so i directly access dashboard without enter in guard what i can do how i can auto loagin the guest user
Solution
LeandroFerreira
LeandroFerreira17mo ago
this?
Route::get('/auto-login', function () {
Auth::loginUsingId(1);
return redirect('/admin');
});
Route::get('/auto-login', function () {
Auth::loginUsingId(1);
return redirect('/admin');
});
Muhammad Umar Mughal Azeemi
Thank u soooo much sir sir without authentication there is any way to access filament dashboard
toeknee
toeknee17mo ago
No.
LeandroFerreira
LeandroFerreira17mo ago
I agree with Adam and Toeknee.. without auth you don't need Filament You can use a normal laravel project..
toeknee
toeknee17mo ago
Exactly, just build Livewire components extending Filament forms and tables.
Want results from more Discord servers?
Add your server