chimit chimit
1

assertSoftDeleted in Lumen

How to test whether an object was soft deleted in Lumen? Laravel has an assertSoftDeleted() method, but it's not available in Lumen like many other assertions....
Lumen
1
14
latz latz
5

Problem with german date format

Hello, i have problems with german date format and postgresql. this is part of json request to the API: trainingsdate: "21.02.2019" Validatio...
Lumen
5
68
mriyadh mriyadh
0

Lumen Post Routes not working on production

Hi every 1, I have completed my lumen api project on my local machine and its all working fine after testing all routes, push it to GitHub and clone it on my VPS in...
Lumen
0
37
friendifie friendifie
4

Shared web-host displays my user's root directory?

Hi there, Apparently my shared web-host wasn't running my Lumen API but I got it working... But, I'm experiencing one more problem and I don't know how to fix it. I think i...
Lumen
4
66
friendifie friendifie
14

Lumen works on shared web-host but isn't working?

Hi there, I'm new to Laravel and Lumen but I do understand that Lumen is a lot faster and more lightweight. That's exactly what I need for my budget/space and needs. So, I...
Lumen
14
187
jbunel jbunel
1

[Lumen 5.4] Post data always empty with PHPunit

Hello, When i try to send post data with $this->post method in my test controller, post data are always empty but when i test through postman, it works. Do you ha...
Lumen
1
102
hsl hsl
13

UnexpectedValueException in Request.php

Hi Guys, Every couple of days I get this entry in the error logs for my lumen app (latest version): [2015-08-11 06:57:12] lumen.ERROR: exception 'UnexpectedVa...
Lumen
13
282
frdmn frdmn
8

Lumen - current route in view

Hello, I try to display the current route name in a view and was using something along the lines {{ Route::getCurrentRoute()->getActionName() }} and...
Lumen
8
610
profchydon profchydon
2

Class App\Api\v1\Controllers\SecondaryStudentController does not exist

I created an API with Lumen and on my localhost, everything works fine but on my production server, i keep getting this error message whenever i try to access a route:...
Lumen
2
78
DarrellDD DarrellDD
0

Session in 5.8

So I've been using Lumen 5.1 for a long time as micro-framework to build small websites with admin flavoured features. The login system running trough my big laravel setup....
Lumen
0
44
marc0 marc0
1

Command in Lumen is not connecting with the AWS RDS

I have a Lumen 5.7 application in Elastic Beanstalk with PHP 7.2, there are several endpoints that are working correctly, get and insert data in the RDS. But a Lumen comman...
Lumen
1
76
lucasctd lucasctd
8

Optional parameters inside group

For some reason if you write a route inside a group only with a optional parameter, Lumen will return 404. For example: $router->gro...
Lumen
8
121
snitch snitch
0

Lumen 5.8 and UpdateOrCreate() with relation requirements

Hi, I have the following 2 Models: users and emailaccounts and emailaccounts has the user.id as a FK attribute. I use users hasOne emailaccount && emailaccou...
Lumen
0
46
iamoskvin iamoskvin
0

Type-hint dependency in controller does not work

Hello, could you help me, pls? I have created service: OdataService. Then in the controller I can get a service instance like that: $odata = app(Odata...
Lumen
0
50
tkmorgan tkmorgan
0

404 Errors when posting to webroot

I am working with Laravel Lumen on iis 8.5 and I had a problem with routes intermittently giving 404 errors. It would work just fine for a while, and then start giving 404...
Lumen
0
59
Thinkverse Thinkverse
8

Lumen Hash Config

Hello everybody, I've been playing around with Lumen for a bit, does anyone know how to change the hashing drivers on Lumen? I've tried adding a config option to the .env f...
Lumen
8
124
xxRockOnxx xxRockOnxx
9

Lumen Session not persisting on every request / Lumen SessionManager

I can't seem to find any way to do sorting of middleware in Lumen. Session auth is being used by the application and the problem is, Authenticate middleware is being called...
Lumen
9
141
Ahosan Ahosan
0

How can multiple user use the same client Id and secret from the front end application using lumen passport

I'm using lumen passport. There Is single user is related to single client. But I need any registered user can access the same API from my client application. What can I do...
Lumen
0
45
chaevnicher chaevnicher
0

ExceptionHandler not working on lumen 5.8

why server return 500? on 5.7 this code worked $app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, App\Exceptions\Handler::class...
Lumen
0
56
engrlaravel engrlaravel
2

Install Lumen inside folder of laravel application

Hi, I have my website www.example.com developed in laravel. Now i want to develop API for mobile in LUMEN. I want to access my api like this . www.example.com/mobile...
Lumen
2
104
AhmedMamdouh AhmedMamdouh
4

Implement sweet alert delete

now i have a sweet alert button for delete how can i implement it so as to when i click on the confirmation message it delete the record? i don't know javascript so i need...
Lumen
4
452
hariharker hariharker
1

Authenticate users into a Laravel App using Lumen Endpoint

I'm building a few micro services using Lumen and a Laravel App (API Composer). Basically the API composer will consume data from microservices endpoints. The applic...
Lumen
1
139
danyal14 danyal14
0

LumenPassport

Hi Guys, I am using LumenPassport package, APIs are working fine in local docker environment. API is deployed in AWS ECS, when hitting login endpoint it throw...
Lumen
0
69
alhassanf alhassanf
1

Lumen Trait

Does anyone know how I can call a Trait from another directory, in Controller.php? I keep getting Trait '{\path}' not found...
Lumen
1
97
FerdinandFrank FerdinandFrank
1

Database slaves when using Lumen with Doctrine

I'm currently using Lumen with the Doctrine2 drop-in implementation for Laravel 5+ as an ORM within a project and we need to be a...
Lumen
1
107
marcato21 marcato21
2

Invoice Number in Controller

Hi, I need to make an Invoice code with the following template : INV-YYYYMMDDXXXXX (XXXXX = 5 digit running number) Then, I write these codes in my 'st...
Lumen
2
161
leocarmo leocarmo
1

Get url without parameters

Hello! For logs, i want to get my path without parameters. My requested endpoint:...
Lumen
1
136
danyal14 danyal14
2

Lumen request error message wrapper

I am trying to wrap request validation errors in custom response. When validating request // Since request breaks here when post is not valid, I can't...
Lumen
2
144
dmahesh1705 dmahesh1705
2

How to disable Mysql Strict Mode in Lumen 5.7

How to disable Mysql Strict Mode in Lumen 5.7. Like other important points seems like this point also missed in Lumen documentation....
Lumen
2
164
mostafalaravel mostafalaravel
1

what's the best place to store the constants variables in lumen

Hello , I work on a rest API service and some parameter can take default values like : offset, limit, order by... I would like to know where to store those values (...
Lumen
1
90
chaevnicher chaevnicher
0

Cookie to response

Hello, I requested illuminate/cookie, $app->singleton('cookie', function () use ($app) { return $app->loadComponent('session', 'Illuminate\Cookie\C...
Lumen
0
69
chaevnicher chaevnicher
1

PDOException SQLSTATE[HY000] [2002] No such file or directory

(1/2) PDOException SQLSTATE[HY000] [2002] No such file or directory (2/2) QueryException SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from u...
Lumen
1
127
chimit chimit
5

Email Verification in Lumen

Recently, Laravel added a convenient way to verify emails on new registrations. I tried to apply it to Lumen but cam...
Lumen
5
290
MrFiliper MrFiliper
7

Method attempt does not exist or Auth guard driver [api] is not defined.

I use Lumen 5, and I'm having trouble with using authentication. I have uncommented $app->register(App\Providers\AuthServiceProvider::class); $app-...
Lumen
7
1503
preciousKeyz preciousKeyz
1

Extend JWT Auth Token Expiry into the future

I am building a backend to be consumed into a Web & Mobile App and wouldn't want users kicked off every time token expires. I want to extend token expiry each time user...
Lumen
1
100
Create a New Discussion Button