Пример #1
0
 public function getRequests($id)
 {
     return Response::json(DbUtil::serializeRoutes(Route::where('state', 'requested')->where('ride_id', $id)->get()));
 }
Пример #2
0
 public function getRequests()
 {
     return Response::json(DbUtil::serializeRoutes(Route::where('user_id', Auth::user()->id)->where('state', 'requested')->get()));
 }