Vincenzo Collica
Vincenzo Collica
FFilament
Created by Vincenzo Collica on 10/30/2023 in #❓┊help
Authorizing access to the panel
Ok, tomorrow I try. Thank you and good night
9 replies
FFilament
Created by Vincenzo Collica on 10/30/2023 in #❓┊help
Authorizing access to the panel
No, Now I try. Thankssssss
9 replies
FFilament
Created by Vincenzo Collica on 10/30/2023 in #❓┊help
Authorizing access to the panel
class User extends Authenticatable implements MustVerifyEmail, FilamentUser { use HasApiTokens, HasFactory, Notifiable; / * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'email', 'password', ]; / * The attributes that should be hidden for serialization. * * @var array<int, string> */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; public function canAccessPanel(Panel $panel): bool { if ($this->is_verified == 1 && $this->hasVerifiedEmail()) { return true; } else if ($this->is_verified == 0 && $this->hasVerifiedEmail()) { Notification::make() ->title('Attenzione') ->body("Al momento non hai ancora ricevuto l'autorizzazione per accedere alla piattaforma. Ti preghiamo di attendere prima di essere abilitato.") ->color('danger') ->danger() ->seconds(10) ->send(); Auth::logout(); } return true; } }
9 replies
FFilament
Created by Vincenzo Collica on 10/30/2023 in #❓┊help
Authorizing access to the panel
I did it, but it keeps logging
9 replies
FFilament
Created by Vincenzo Collica on 8/7/2023 in #❓┊help
Request for information on the documentation
One last piece of advice, please. I have used Laravel's Fortify authentication system, which I find comprehensive. I've seen that Filament has its own system, but it seems incomplete. Can I integrate it or use the Fortify package of Laravel with Filament
12 replies
FFilament
Created by Vincenzo Collica on 8/7/2023 in #❓┊help
Request for information on the documentation
So it seems to me that I can continue to use all the logic of Laravel (controller, query builder, email, etc..) using the forms, tables and everything that Filament offers?
12 replies
FFilament
Created by Vincenzo Collica on 8/7/2023 in #❓┊help
Request for information on the documentation
Thank you very much. Can I ask if Filament is a good tool that integrates with Laravel and Livewire? It seems to me it saves a lot of code
12 replies