Ejemplo n.º 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]);
 }
Ejemplo n.º 2
0
 public function deny($id)
 {
     $req = friendship::find($id);
     if ($req) {
         $req->delete();
     }
     return Response::json(array('success' => true));
 }