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
125
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
122
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
125
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
295
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
429
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
108
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
153
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
220
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
753
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
251
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
140
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
182
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
237
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
328
leocarmo leocarmo
1

Get url without parameters

Hello! For logs, i want to get my path without parameters. My requested endpoint:...
Lumen
1
251
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
280
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
393
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
171
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
113
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
205
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
526
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
2903
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
160
salvador98 salvador98
2

custom exception in lumen

hi . how i can make custom exception ? i use this but not work <?php namespace App\Exceptions; use Exception; class RobotException extends Exception {...
Lumen
2
382
ahmednawazkhan ahmednawazkhan
2

Automatic resolution error in laravel lumen

the error is Argument 1 passed to App\Http\Controllers\PostsController::show() must be an instance of App\Post, string given in Posts...
Lumen
2
224
priti priti
3

Implement Rabbitmq queue

Hi, I have installed - https://github.com/php-amqplib/php-amqplib...
Lumen
3
2305
danyal14 danyal14
1

Laravel/Passport for Lumen

Hi Guys, I am not able to implement laravel passport in Lumen, since Passport is not officially supported in Lumen, then I used dusterio/lumen-passport that worked f...
Lumen
1
320
diaglyph diaglyph
3

Lumen and Filesystem - Driver [] is not supported

I'm using Lumen to make an API and I need to read/write files within the Storage folder. I've set up special "disks" for this purpose. I have a results folder lin...
Lumen
3
361
ken4ward ken4ward
3

Querying a single user from Lumen API

Kindly help me on how to write the api route on querying a single user. I have the one that returns all the records in the database. This is the route...
Lumen
3
293
jcalonso jcalonso
10

Lumen - Route with optional parameters

Hello, I'm starting new app with Lumen and I'm trying to create a route with optional parameters like this: $app->get('user/{param?}',[ 'as'...
Lumen
10
2138
trogne trogne
2

proper way to override vendor config

In Lumen, there's no app/config folder. So, for a heroku site, when deploying, all changes that was made to vendor config folders will be lost. Say I want &qu...
Lumen
2
309
VoidMrVoid VoidMrVoid
2

Why Lumen ignores exceptions out-of-the-box?

Hi. I've noticed that Lumen is ignoring some exception handlers while Laravel does not. Why?...
Lumen
2
219
testlara testlara
1

? Encripted API possible ?

Is there any way to encript api so that no one can get data directly if he runs it from emulator/restclients/or any api call by reverse engineering the app ...For example y...
Lumen
1
162
CH17 CH17
5

Lumen errors not showing

Hello, I'm trying a fresh install with Lumen. Everything is fine except error page showing blank. No messages. Not even "Whoops, looks like something went wrong."...
Lumen
5
1036
trogne trogne
10

solution to axios.post cors problem

What is a WORKING solution to the axios.post cors problem ? I have cors setup in Lumen, with a cors middleware. In my frontend, when I do "axios.post&quo...
Lumen
10
545
Create a New Discussion Button