isReseller() && $user ->accounts_all ->contains($account->id); } /** * Determine whether the user can delete the model. */ public function delete(User $user,Charge $charge): bool { return $user->isReseller() && $user ->accounts_all ->contains($charge->account_id); } /** * Determine whether the user can update the model. */ public function update(User $user,Charge $charge): bool { return $user->isReseller() && $user ->accounts_all ->contains($charge->account_id); } }