id == $profile->user_id; } /** * Determine whether the user can delete the model. * * @param \App\Models\User $user * @param \App\Models\Profile $profile * @return mixed */ public function delete(User $user, Profile $profile) { // } /** * Determine whether the user can restore the model. * * @param \App\Models\User $user * @param \App\Models\Profile $profile * @return mixed */ public function restore(User $user, Profile $profile) { // } /** * Determine whether the user can permanently delete the model. * * @param \App\Models\User $user * @param \App\Models\Profile $profile * @return mixed */ public function forceDelete(User $user, Profile $profile) { // } }