Ayman Alareqi
Ayman Alareqi
FFilament
Created by datarecall on 8/19/2023 in #❓┊help
v3 upgrade
try
php artisan filament:upgrade
php artisan filament:upgrade
8 replies
FFilament
Created by Ayman Alareqi on 8/19/2023 in #❓┊help
get Route [filament.admin.auth.login] not defined. error
Solved by creating the named route
Route::get('/login', function () {
$url = url()->previous();
$routeName = app('router')->getRoutes()->match(app('request')->create($url))->getName();
$panelId = explode('.', $routeName)[1];
$panel = Filament::getPanel($panelId);
Filament::setCurrentPanel($panel);
return redirect()->to(Filament::getLoginUrl());
})->name('login');
Route::get('/login', function () {
$url = url()->previous();
$routeName = app('router')->getRoutes()->match(app('request')->create($url))->getName();
$panelId = explode('.', $routeName)[1];
$panel = Filament::getPanel($panelId);
Filament::setCurrentPanel($panel);
return redirect()->to(Filament::getLoginUrl());
})->name('login');
4 replies
FFilament
Created by Faab007NL on 8/16/2023 in #❓┊help
First time pressing the CreateAction button not working
is there any console error?
7 replies
FFilament
Created by prazer on 8/10/2023 in #❓┊help
How to Enum on TextColumn method?
You should add the cast to your model like this
use App\Enums\PropertyAgrupament;

protected $casts = [
'agrupamento' => PropertyAgrupament::class,
];
use App\Enums\PropertyAgrupament;

protected $casts = [
'agrupamento' => PropertyAgrupament::class,
];
11 replies