Exemple #1
0
 public function remove(Request $request, Application $app, $user_id, $friend_id)
 {
     $model = new Friend($app['neo']);
     if ($model->delete($user_id, $friend_id)) {
         return $this->sendJson(['success' => true], 200);
     } else {
         return $this->sendJson(['seccess' => false], 404);
     }
 }