id === $automationRule->user_id; } /** * Determine whether the user can delete the model. */ public function delete(User $user, AutomationRule $automationRule): bool { return $user->id === $automationRule->user_id; } /** * Determine whether the user can restore the model. */ public function restore(User $user, AutomationRule $automationRule): bool { return false; } /** * Determine whether the user can permanently delete the model. */ public function forceDelete(User $user, AutomationRule $automationRule): bool { return false; } }