Use this tag for version specific questions about Lumen 5.5 - the official micro-framework by Laravel. When using this tag also include the more generic [lumen] tag.
Questions tagged [lumen-5.5]
11 questions
5
votes
2 answers
Lumen 5.5.2 URL forceSchema not working at all
I am using Lumen 5.5 and using the following code chunk under app/providers/appServiceProvider.php in boot method.
\URL::forceSchema('https');
It was compatible with the earlier version of Lumen 5.2
Is there any way to sort this out without using…

Abdul Samad
- 81
- 1
- 8
2
votes
1 answer
HTTP Request from Angular 5 to Lumen Rest API
I am having a problem with sending HTTP request from angular 5 front-end app to lumen back-end restful api.
Well, simply I want to sign up a user.
here is my lumen back-end code for handling the creation of a user :
public function create(Request…

Fahim Uddin
- 681
- 2
- 10
- 36
2
votes
1 answer
How to use multiple DB connections using .env in Lumen 5.5..?
I have installed Lumen 5.5 and configured .env…

Ritesh
- 4,720
- 6
- 27
- 41
1
vote
1 answer
Lumen: In routes.php line 17: Call to undefined method Laravel\Lumen\Application::post(), after upgrade to 5.5.*
I am working in project where I need to upgrade the Lumer version from 5.1.* to 7.*.
But I have been stuck at the versions 5.4.* and 5.5.*. Where in 5.4.* when I ran the built-in php server php -S localhost:8000 -t ./public and visited the URL…

Vicky Dev
- 1,893
- 2
- 27
- 62
1
vote
2 answers
Lumen 5.6 php artisan migrate --env=testing not working
Lumen Version: 5.6
PHP Version: 7.2
Database Driver & Version: SQLite 3
Steps To Reproduce:
cp .env .env.testing
SetAPP_ENV=testing
Run php artisan migrate --env=testing
Problem
Old env file configuration is executing.

sadaiMudiNaadhar
- 354
- 1
- 12
1
vote
1 answer
Social Login with Angular 5 and Lumen 5.6
I am trying to implement social login with angular 5 as my front-end and lumen 5.6 as my backend.
I am using JWT Authentication system with Lumen.
So, I am confused here how I should implement social login system in this situation.
Through my…

Fahim Uddin
- 681
- 2
- 10
- 36
1
vote
1 answer
Lumen 5.6 Error handling (throws exception twice)
This is my code to handle any error:
App\Exceptions\Handler::class
public function render($request, Exception $e)
{
$fe = \Symfony\Component\Debug\Exception\FlattenException::create($e);
$statusCode = $fe->getStatusCode();
$code …

Mohamed Kamel
- 93
- 1
- 13
0
votes
1 answer
Lumen: Where to define controller reponse helper method
In my lumen based API, negative responses like entity not found are handled by custom exceptions that are caught by the global exception handler.
Now I'm looking for a non-redundant way to return positive responses.
class ListController extends…
user3846527
0
votes
1 answer
Duplicate postgres schema
I'm working on multi-tenant system in which I need to work on different tenats. in some cases I need to create new schema which contains some tables and default data. for that I just want to duplicate or copy public schema with diff. name Is there…

user3578842
- 11
- 2
0
votes
1 answer
Laravel Lumen Migrations fail if there are no migrations present
I created a new Lumen project without any migrations for now. Since I'm setting up CI, I'd like to always run php artisan migrate just in case migrations are added at some point.
Here is my .env file for the CI…

Daniel Becker
- 771
- 1
- 7
- 25
0
votes
1 answer
Lumen 5.5 all requests are going through auth
My routes in web.php are as below:
$router->post('apiToken', 'AuthController@getApiToken');
$router->group(['middleware' => 'auth:api'], function () use ($router) {
$router->get('users', 'UserController@index');
$router->post('users',…

Velu
- 53
- 4