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