*/ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function can($abilities = [], $arguments = []): bool { foreach ($abilities as $permission) { if (in_array($permission, $this->permissions)) { return true; } } return false; } }