todo->project_todo->project_user->user // $PomoUser = $pomo->todo->project; // Check if the user is the owner of the pomo // return $user->id === $PomoUser[0]->id; return true; } /** * Determine whether the user can restore the model. */ public function restore(User $user, Pomo $pomo): bool { return true; } /** * Determine whether the user can permanently delete the model. */ public function forceDelete(User $user, Pomo $pomo): bool { return true; } }