I have app based on Docker and microservices. Angular, MySQL, Lumen + Apache. Unfortunately on Docker my API doesn’t send any header or status code. Any response is 200. I tried change HTTP server to NGINX but for nothing. I have no idea how can i fix this issue. Apache config Dockerfile docker-compose.yml .htaccess Answer Okey I found answer for
Tag: lumen
Laravel Lumen 5.7, debugbar throw Call to a member function listen on null
I’m trying to use the debugbar with lumen and jenssegers/laravel-mongodb , it wasn’t showing the database queries so I enabled. DB::connection(‘mongodb’)->enableQueryLog(); But now it shows this error. `Call to a member function listen() on null in LaravelDebugbar.php line 354` Another thing is that it only displays the debugbar on the home URL /, other than home URL it doesn’t display the debugbar.
Laravel: Use makeVisible() after a hasMany() call
I’m using lumen to develop a REST API. I used for that 2 models User and Post. In my User model I can get all the user’s posts using the hasMany() method: <?php namespace App; use Illuminate…
Return error response if a body params is not mentionned in the validator
I’m using the Laravel Validator to test my incoming request. So to be sure that the request contains an username and an email, I write something like that: $validator = Validator::make($request->…
PostgreSQL integer field is returned as string in PHP
I’m using PHP 7.2.12 and PostgreSQL 9.5.5 and Lumen 7 when i execute a query with query builder, Lumen give me numeric column as string. Table: id: bigint { id: “1” } i have searched for and …
Clear cache in Lumen Framework
I want to clear cache in lumen framework. I thought the command line is the same with Laravel command. I tried to run this: but it giving error php artisan Could not open input file: artisan. Need help! Answer Lumen doesn’t have the artisan command. From the Lumen Cache documentation head over to the Laravel Cache documentation where there’s a
Sufficient API Response for Mobile App
I’m creating an API for my mobile app with Laravel – Lumen and i have the following scenario which i don’t know what is the most sufficient way to return the response to my Android / IOS App, lets assume that the user is trying to sign in (same end point): Case 1 : the user provide the correct data