php artisan filament:upgrade
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');
use App\Enums\PropertyAgrupament; protected $casts = [ 'agrupamento' => PropertyAgrupament::class,];