예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $pendings = friendship::where('follower_id', Auth::user()->id)->where('status', friendship::STATUS_PENDING)->get();
     return view('player.social', ['pendings' => $pendings]);
 }
예제 #2
0
 public function deny($id)
 {
     $req = friendship::find($id);
     if ($req) {
         $req->delete();
     }
     return Response::json(array('success' => true));
 }