realty/app/Http/Controllers/API/v1/CatalogController.php
/**
     * Display a listing of the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
Display a listing of the resource .
public function index(Request $request)
    {
        $filter = new CatalogItemsFilter($request);
        return CatalogItemResource::collection(
            CatalogItem::filter($filter)->paginate()
        );
    }
public function index ( Request $ request ) { $ filter = new CatalogItemsFilter ( $ request ) ; return CatalogItemResource :: collection ( CatalogItem :: filter ( $ filter ) -> paginate ( ) ) ; }
Display a listing of the resource.
Display a listing of the resource .