Questions tagged [lumen]

Lumen is a "micro-framework" built on top of Laravel's components, and is the official micro-framework of Laravel. Lumen is targeted at microservices--small, loosely-coupled components that usually support and enhance a core project.

Filter by
Sorted by
Tagged with
0 votes
0 answers
72 views

Iterate over very large array which is stored in a jonb column without loading it into memory

I have a table in a postgres DB which contains a jsonb column let's call it "data" that contains very large array stored as the following format [ { "id" : 1 "title" : &...
Marcos DaSilva's user avatar
1 vote
0 answers
36 views

Undefined variable $router

I'm trying to host my website; it works fine on my VS code but when I hosted it and run it gave me this error. I'm using php - lumen framework. [28-Nov-2023 13:12:17 UTC] PHP Warning: Undefined ...
N D's user avatar
  • 11
0 votes
1 answer
43 views

Lumen: optional route params isn't resolved correctly

Using Laravel's Lumen 9.1.6 I am following the documentation but still have a problem with an optional trailing route parameter defined like this: routes/web.php $router->group(['prefix' => '...
pop's user avatar
  • 3,486
-1 votes
0 answers
35 views

File upload vulnerabilities [closed]

I have a question regarding website security, particularly related to file uploads. Is it possible for someone to inject a website using a text file, especially when the text file extension is renamed ...
Crowy's user avatar
  • 36
0 votes
0 answers
14 views

How do you make Laravel queue run automatically using Forge and Ubuntu?

My queue jobs never reach the handle() function, though the construct() function is called just fine. I have a queue called "api" and I am sending the jobs to that queue. Supervisor is set ...
Jonathan Hyams's user avatar
0 votes
1 answer
73 views

How can i access uploaded files in lumen?

I tried lot of methods available on google but nothing work. I searched on google from past few days but still no success. I am trying to upload images using lumen API and it works fine. But i am not ...
Robin Singh's user avatar
  • 1,596
0 votes
0 answers
91 views

Why Query Builder in lumen doesn't work the same as it is working in MySQL Workbench

I am using lumen framework for the api service. Now suppose, I have a select query where I am assigning an alias to a particular column and then in the order by clause I am using the same column name ...
Ansh Bargoti's user avatar
1 vote
2 answers
36 views

Ignoring Route Parameters in Laravel like in Lumen

I've been working with Lumen, and I've noticed a convenient feature where I can ignore some route parameters, and the parameter will automatically match the name of the argument. However, in Laravel, ...
Marcos DaSilva's user avatar
0 votes
0 answers
86 views

Unsupported driver [mongodb]

I'm encountering the "Unsupported driver [mongodb]" error while attempting to connect PHP (version 8.1) with MongoDB (version 7.0.2) using the Lumen/Laravel framework (laravel/lumen-...
Saurabh RC's user avatar
0 votes
0 answers
30 views

DrawDebugSphere obscured by invisible object

I'm following a course, and noticed my debug sphere doesn't render at certain areas of my screen. Here's a quick image to show that What's interesting is if I switch the view modes from lit to unlit, ...
Robert's user avatar
  • 1
0 votes
0 answers
28 views

Lumen AWS S3 Bucket Access C# Example

I am looking for example code and configuration setup for autorization/connect for Lumen's AWS S3 Bucket storage We just started a 60 day trial with Lumen storage and am trying to create a .Net/C# ...
Datadaddy's user avatar
0 votes
0 answers
21 views

PDO leak in PHP 8.1/Lumen/Postgres

We're running a series of test cases; our code is built on Lumen. Our PHP is 8.1.22, our database is PostgreSQL 11, and we're using Lumen 8.6 and PHPUnit 9.0 to run the tests. When we run the tests, ...
NoLongerBreathedIn's user avatar
0 votes
0 answers
14 views

Is Date saved the string in mongodb

I have a problem, which I researched a lot, I tried several ways, but I did not find the solution, I need to save the current date in a document in mongodb I am using Lumen, but when I put the date it ...
Gabriel Felipe's user avatar
-1 votes
1 answer
109 views

How to call API at particular event after return in Controller, Laravel Lumen?

We implementing a system in Laravel Lumen: complete flow Image: https://drive.google.com/file/d/1rFdkUwUaTQ4DGQaxXveu6CFylg1o1oLN/view?usp=sharing assume the client hit the POST API 1 that we defined ...
ErMapsh's user avatar
-1 votes
1 answer
77 views

Module Laravel could not be found and loaded

Codecept is used for unit testing in my application, and accidentally, it stopped working and gave the following error when running unit tests: In ModuleContainer.php line 80: Module Laravel could ...
cha's user avatar
  • 740
0 votes
1 answer
69 views

inserted sql query with variables in laravel lumen

I wanna make sql query like this. But I cant find a rigth syntax for this piece of code. $sql = " SELECT SUM(gross) AS sum FROM movies "; if ($item && $...
StEvE's user avatar
  • 39
0 votes
3 answers
311 views

Lumen returns error after executed "composer update command"

After executed composer updated lumen retuns arror. message": "Symfony\\Component\\HttpFoundation\\Request::getPayload(): Return value must be of type Symfony\\Component\\HttpFoundation\\...
Maya's user avatar
  • 1
0 votes
0 answers
40 views

AWS SQS crashed in Laravel/Lumen

I have setup lumen microservice v9.0 and installed the following dependecies "php": "^8.0", "aws/aws-sdk-php": "^3.263", "dusterio/laravel-aws-worker":...
Rizwan Saleem's user avatar
0 votes
1 answer
166 views

FFMpeg PHP: Unable to load FFProbe

I am using the Lumen PHP framework which is the form of Laravel. On the server side I have Bitnami. I get the 500 error when the code that uses FFMpeg is being executed. My part of the code which ...
Artem Konyaev's user avatar
1 vote
2 answers
88 views

How to close mongo db idle connections in lumen using jessengers?

I am using jessenger package for mongo db connection in lumen. Issue I am facing is that each api open up a new mongo db connection. which turns out to be bulk of idle db connections of servers ...
Shahid Rafiq's user avatar
0 votes
0 answers
51 views

Eloquent, use snake_case in database, but camelCase while operating with json (both request/response)

I have a Lumen application using Eloquent, and I was just wondering why isn't a way of storing my model properties in camel_case in the database, but using camelCase while handling requests and ...
Hienz's user avatar
  • 698
0 votes
0 answers
17 views

Lumen API return all data as string after transfer to another Host server

I have Lumen API project with MySQL database work fine on hostgator, I transferred all project and database to A2Hosting I get problem with returned data, all data type returned is string, I have ...
Sarmed MQ Berwari's user avatar
-1 votes
1 answer
244 views

how to create a middleware In laravel 10 to log all API request & response in database table? [closed]

I have an API project on Laravel lumen which is already built with approx 300 API URLs. Now the requirement is to store every request and its response to the database to track the API calls. There is ...
Rk dev tech's user avatar
0 votes
1 answer
191 views

Decrypt CryptoJS using Laravel with dynamic key

Im trying to decrypt string made by CryptoJs, How do i achieve this? Here is my Js code: <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></...
Twigu's user avatar
  • 29
0 votes
1 answer
41 views

Lumen logs not reported to Bugsnag

I have a Lumen 8 app where I want to use bugsnag to be notified when my app is logging some error. I have followed the docs by: Adding bugsnag/bugsnag-laravel module Adding the service provider in ...
Fabrice Lefloch's user avatar
0 votes
0 answers
22 views

Best way to show static HTML+linked CSS from secure back-end using JWT?

I have a set of different Angular applications all connecting to the same Laravel/Lumen back-end. I secure these applications using the Laravel/Lumen RestAPI with my own middleware to secure endpoint ...
Pianoman's user avatar
  • 337
0 votes
0 answers
73 views

viaRequest method with api driver is not working in Lumen Passport

I am implementing Passport in Lumen to authenticate users and APIs using Lumen 10.0 and dusterio/lumen-passport. I followed the articles on the internet to implement it but I stuck at authentication ...
habib's user avatar
  • 99
0 votes
0 answers
135 views

How do I get the Light Intensity Value at a specific location?

I'm trying to create a stress mecanic for my horror game on Unreal Engine 5.2. The darker the room is, the higher the stress value will increase. Is it possible to detect the lighting intensity value ...
Thomas's user avatar
  • 1
0 votes
0 answers
51 views

could not get compatible version of lumen-framework and redis

"require": { "laravel/lumen-framework": "^8.0", "predis/predis": "^2.0", "illuminate/redis" : "5.1.*" }, lumen-framework and ...
Sreeparna Das's user avatar
0 votes
0 answers
131 views

Can lumen be ran in a docker container using sail package?

I was wondering if it is possible to use the sail package in running a lumen project in a docker container. I tried editing the supervisor file that comes by default with the sail package like this [...
Mena's user avatar
  • 1,923
0 votes
1 answer
588 views

Lumen Laravel V 10 : Builder::relatedTo(): Argument #1 ($subject) must be of type string, null given

I'm having trouble when I want to generate jwt auth tokens with Laravel 10 lumens ' Error msg : Lcobucci\JWT\Token\Builder::relatedTo(): Argument #1 ($subject) must be of type string, null given, ...
fanus99's user avatar
0 votes
0 answers
33 views

White screen in lumen when added @error() directive or @csrf

I'm new to Lumen, so I'd like to know why I'm getting errors when I add the @error() directive to the view or blade template, but when I remove the @error() directive from the view, everything works ...
Jie clark's user avatar
0 votes
1 answer
109 views

Auth::logout() is working in local but not in server for JWT authentication in Lumen

In my Laravel Lumen (version 8) application, When I'm trying to log out using Auth::logout() 500 server error is occurring. I'm not able to capture the log why this issue is there. My logout() is ...
Sanjukta's user avatar
0 votes
0 answers
91 views

how to handle swoole http server memery usage

i have a lumen application with too many requests and i used swoole http my swoole http version is "swooletw/laravel-swoole": "^2.6", and here is is my system service [Unit] ...
matin's user avatar
  • 63
0 votes
0 answers
161 views

How to fix this issue "PHP Fatal error: Uncaught Error: Call to private PHPUnit\Framework\TestSuite::__construct() from scope"

I am facing below mentioned issue when executing the command "phpunit" in Lumen: PHP Fatal error: Uncaught Error: Call to private PHPUnit\Framework\TestSuite::__construct() from scope ...
Suganthi's user avatar
0 votes
2 answers
313 views

create storage link in lumen

I saw some questions about, people say to run this command ln -s ../storage/app/public public/storage And it works, it copies the folder, but it doesn't update when another file/image is added to the ...
gobs's user avatar
  • 196
0 votes
0 answers
60 views

.htaccess /public occurs on working on laravel lumen

I have this domain example.com, Whenever user opens that domain example.com it redirects to www.example.com/en It is in lumen framework (laravel). There are two .htaccess files. One is at the root of ...
AKT's user avatar
  • 54
0 votes
0 answers
106 views

Error in displaying Laravel (Lumen) errors

I use Lumen Framework (8.3.1) (Laravel Components ^8.0). I see following message when there's an error and I check Firefox Web developer tool's response in network tab: Fatal error: Uncaught ...
Asela's user avatar
  • 313
-1 votes
1 answer
118 views

I can't install any package. Showing this issue

Your requirements could not be resolved to an installable set of packages. Problem 1 - noitran/opendox v0.1.0 requires illuminate/routing ~5.7 -> satisfiable by illuminate/routing[v5.7.0, ..., v5.8....
Mustakim Mokter's user avatar
0 votes
1 answer
36 views

Get Laravel Validation Keyed By Failed Rules

I'm trying to do backend validation in Laravel for a VUE SPA. I'm trying to return errors to the frontend keyed by the actual rule that failed, because my frontend needs to perform some other logic ...
Andrew Steenbuck's user avatar
0 votes
1 answer
33 views

Tests - How to show test error messages in lumen

I want to view the request error messages to find out what the error was. I return a 'message' parameter, with the value of the error variable that trycatch generates. I just can't figure out how to ...
gobs's user avatar
  • 196
0 votes
0 answers
28 views

Are api keys non-compliant with ASVS standards?

Hope you all are doing well. We are looking to achieve ASVS level 2 compliance. We have an upcoming project that requires machine to machine communication, and we are looking at implementing API keys ...
Waleed Farid's user avatar
0 votes
0 answers
29 views

Laravel/Lumen executing same query multiple times cause null exception

When I try to execute the following query multiple times : DB::table('items') ->where('id', $data['id']) ->update([ 'account_id' => $data[...
mark820850's user avatar
1 vote
2 answers
916 views

Call to undefined method App\Http\Controllers\UserController::successResponse() (500 Internal Server Error)

I am so confused by this error because this is my first time in back end subject , our instructor didn't included the CRUD operations on the video he provided so I decided to discover all by myself ...
Jie clark's user avatar
2 votes
2 answers
274 views

How to change or manage the "Carbon" timezone so it doesn't move the clock back and forth

I use Laravel and I deployed my application on Docker I use carbon package for time management and I set the timezone to Asia/Tehran But now I found a problem and the time are moved forward one hour ...
Mohsen Bagheri's user avatar
0 votes
1 answer
176 views

Lumen application doesn't show stacktrace while in debug mode

I have two Lumen microservices with (as far as I can tell) identical configuration. One shows a user-friendly error page, one doesn't. Both services have this simple controller method: public function ...
Sherlock's user avatar
  • 7,515
0 votes
1 answer
400 views

Dynamic Cache Prefix For Multi Tenancy Database

I am working in a multi tenancy Lumen project (v8.3.4) and using this mostafamaklad/laravel-permission-mongodb (v3.1.0)package for user's role-permission handling. The problem I am facing is roles and ...
iamab.in's user avatar
  • 2,032
1 vote
1 answer
947 views

How Can I Solve Laravel Lumen Error / JWT Secret Is Not Set?

I would like to use JWT at Laravel Lumen for using Bearer token at authentication of user. But I'm getting an error at postman for the login endpoint. How can I solve this problem? Can you give me an ...
RCeyda 's user avatar
  • 107
0 votes
1 answer
48 views

How to create a common message file in lumen framwork

I have an API setup with the PHP Lumen framework, I want a common service file or maybe a helper which contains all the messages I will pass to the client. It is not something I am looking for ...
shakti P Sisodiya's user avatar
0 votes
1 answer
197 views

Lumen and passport integration

Implementing the passport library in lumen: https://github.com/dusterio/lumen-passport I am getting this output when performing php artisan migrate In Facade.php line 338: Call to undefined method ...
Julián Oviedo's user avatar

1
2 3 4 5
53