Skip to content

Instantly share code, notes, and snippets.

@jeffersongoncalves
Created February 11, 2025 11:34
Show Gist options
  • Save jeffersongoncalves/495592cb385945252a46510cb45bdabd to your computer and use it in GitHub Desktop.
Save jeffersongoncalves/495592cb385945252a46510cb45bdabd to your computer and use it in GitHub Desktop.
Add status verification in Login FilamentPHP
<?php
namespace App\Filament\Pages\Auth;
class Login extends \Filament\Pages\Auth\Login
{
protected function getCredentialsFromFormData(array $data): array
{
return [
'email' => $data['email'],
'password' => $data['password'],
'status' => true,
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment