Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function delete($friend_id)
- {
- $friends = Friend::where([
- 'user_id' => $friend_id,
- 'friend_id' => Auth::id(),
- 'accepted' => 1,
- ])->get();
- $friends2 = Friend::where([
- 'user_id' => Auth::id(),
- 'friend_id' => $friend_id,
- 'accepted' => 1,
- ])->get();
- $friendsNotWorking = Friend::where([
- 'user_id' => $friend_id,
- 'friend_id' => Auth::id(),
- 'accepted' => 1,
- ])->orWhere([
- 'user_id' => Auth::id(),
- 'friend_id' => $friend_id,
- 'accepted' => 1,
- ])->get();
- dd($friends, $friends2, $friendsNotWorking);
- return back();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement