public function index(Request $request)
    {
        $images = $this->imageRepository->getPaginated($request->get('limit', 50));

        if($request->ajax()) return $images;

        return view('laramanager::images.index', compact('images'));
    }
public function index(Request $request)
    {
        $images = $this->imageRepository->getPaginated($request->get('limit', 50));

        if($request->ajax()) return $images;

        return view('laramanager::images.index', compact('images'));
    }
public function index ( Request $ request ) { $ images = $ this -> imageRepository -> getPaginated ( $ request -> get ( 'limit' , 50 ) ) ; if ( $ request -> ajax ( ) ) return $ images ; return view ( 'laramanager::images.index' , compact ( 'images' ) ) ; }
This provides the gallery of images

@param Request $request
@return \Illuminate\Contracts\View\Factory|\Illuminate\Http\JsonResponse|\Illuminate\View\View
@throws \Exception
@throws \Throwable
This provides the gallery of images