skip to Main Content

Request gets overridden with other data – Jquery ajax

I'm trying to get data for autocomplete using laravel. Controller: public function collection_search(Request $request) { $term = $request->search; $serveurapObj = new Serveurap(); $result = $serveurapObj->collectionAutocomplete(); return response()->json($result); } Model: public function collectionAutocomplete($term) { $where= ['m.supprime'=>'0', 's.supprime'=>'0']; return DB::table('serveuraps AS s')…

VIEW QUESTION

Cant find laravel running in port 8000 – Docker

I was creating docker container for laravel with postgres. containers running but cant find laravel in web. Dockerfile: FROM php:7.4-fpm-alpine RUN docker-php-ext-install pdo pdo_pgsql RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN composer install WORKDIR /var/www/html COPY .…

VIEW QUESTION
Back To Top
Search