App\Http\Controllers\Backend\EventController::index PHP Method

index() public method

Display a listing of the resource.
public index ( ) : Illuminate\Http\Response
return Illuminate\Http\Response
    public function index()
    {
        $event = $this->repository->orderBy('id', 'desc')->paginate(config('custom.per_page'));
        return view('backend.event.index', ['events' => $event]);
    }