/** * Get from query */ public function get($page = null) { return $this->query(Quote::with('client', 'items', 'invoice'), $page); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $quotes = Quote::with('tags')->where('approved', true); return response()->json($quotes->paginate()); }