*/ use HasApiTokens, HasFactory, HasRoles, Notifiable, SoftDeletes; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_active' => 'boolean', 'deleted_at' => 'datetime', 'approved_at' => 'datetime', ]; } public function isPending(): bool { return $this->approved_at === null; } }