app/Http/ApiControllers/ConfirmController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
     {
         $this->offset = isset($request->offset)? $request->offset : 0;
         $this->limit  = isset($request->limit)? $request->limit : 30;
         $name         = isset($request->name)? $request->name : '%';
         $confirm = ConfirmResource::collection($this->confirmInterface->getAll($this->offset, $this->limit, $name));
         $total = $this->confirmInterface->total();
         $this->data($confirm);
         $this->total($total);
         return $this->response('200');
     }
public function index ( Request $ request ) { $ this -> offset = isset ( $ request -> offset ) ? $ request -> offset : 0 ; $ this -> limit = isset ( $ request -> limit ) ? $ request -> limit : 30 ; $ name = isset ( $ request -> name ) ? $ request -> name : '%' ; $ confirm = ConfirmResource :: collection ( $ this -> confirmInterface -> getAll ( $ this -> offset , $ this -> limit , $ name ) ) ; $ total = $ this -> confirmInterface -> total ( ) ; $ this -> data ( $ confirm ) ; $ this -> total ( $ total ) ; return $ this -> response ( '200' ) ; }
Display a listing of the resource.
Display a listing of the resource .