Questions tagged [lumen-5.4]

Lumen is a micro-framework built on top of Laravel's Illuminate components. Use it in addition to the [tag:lumen] tag in questions specific to Lumen 5.4.

Lumen is a micro-framework that is primarily used to develop stateless APIs. It is built on top of Laravel's Illuminate components. Lumen 5.4 uses the 5.4 family of Laravel's Illuminate components.

It was released on 24th January 2017.

49 questions
13
votes
5 answers

$ Composer can't find mongodb extension, required Mongodb extension

I'm using with latest php version 7.2 on macOS (Mojave / Big Sur / Monterey / Ventura / Sonoma) and receiving error like $composer require mongodb/mongodb Using version ^1.4 for mongodb/mongodb ./composer.json has been updated Loading composer…
Kalpesh Gamit
  • 939
  • 1
  • 11
  • 30
13
votes
4 answers

How to convert Pdf file to byte array in php and send?

I have found pdf to byte array and vice-versa in java,dotnet and python. But i want to convert pdf to byte array in php laravel. I am using "IMUIS" which is accounting software solution and need to sending journal entries from laravel lumen to…
Anand Pandey
  • 2,025
  • 3
  • 20
  • 39
7
votes
1 answer

Lumen - Routing with Prefix and Optional Parameter

I'm looking at routing in Lumen and it doesn't appear to be working correctly and I can't work out if it's an issue or my understanding. $router->get('{adaptor}[/{id}]', ['uses' => 'MyController@readAction']); This way works, but I'd prefer to…
Farkie
  • 3,307
  • 2
  • 22
  • 33
7
votes
3 answers

Getting route parameters in Lumen

When trying to access Route parameters, using $request->route('id'), in latest version of Lumen, I get an error. lumen.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function parameter() on array It works fine in…
Zoon
  • 1,068
  • 2
  • 11
  • 26
4
votes
1 answer

Route with dot (IP address) not found, returns 404

I use Lumen 5.4. This is how my route is setup: $app->get('/ip/{ip}', GeoIpController::class . '@show'); The {ip} route parameter should be an IP address, with dots in it. However, it seems there is a problem when a route has dots in it. It…
wujt
  • 1,278
  • 2
  • 13
  • 21
3
votes
3 answers

Lumen queue jobs with database drivers doesn't populate table jobs

I'm completely new using laravel/lumen I generate a new lumen proyect a few hours ago and I'm trying to send job to the default queue using a database driver. my .env file looks like…
YuryDG
  • 425
  • 3
  • 7
2
votes
1 answer

How to define default attribute as empty array in lumen

currently i am using mongodb as database, i have created a collection in which every field needs to be typed array ,also i want them to be set as default empty array if value not provided. class Scores extends Eloquent { /** * The table…
D p
  • 93
  • 8
2
votes
0 answers

Unable to access uploaded file in browser through URL in Lumen

I'm building a web app with Docker, Nginx and Lumen. I have completed file upload functionality and everything works fine. However, when I try to access uploaded file from URL Lumen throws me NotFoundHttpException. I have already created symlink…
Ilyas Khametov
  • 308
  • 3
  • 18
2
votes
1 answer

How to use azure blob in lumen?

I need to use azure blob storage but the problem is i cann't find any reference or tutorial to apply azure blob storage in Lumen. I only find azure blob in laravel. Here what i…
Josh Parinussa
  • 633
  • 2
  • 11
  • 28
2
votes
2 answers

"Invalid_grant" response when use Twinfield Openid Oauth connect

This is the library which I used https://github.com/php-twinfield/ It's an issue when I call the Oauth login. I have completed almost APIs with username and password but client wants it with Oauth. I think there is a problem in redirectUri. When I…
Anand Pandey
  • 2,025
  • 3
  • 20
  • 39
2
votes
1 answer

Lumen/Laravel - use custom router

Is there any out of the box solution without changing core to add custom router in to laravel or lumen. I already know that lumen is using different router from laravel, so I am wondering is there any possibility builded in core to change router?
Dejan Milosevic
  • 313
  • 4
  • 14
2
votes
0 answers

Laravel - Trigger all queues through coding

I'm creating 5 queues named q1, q2..q5 each have a job to execute. To run all 5 jobs simultaneously, placed each job in different queues. with use of artisan command, I can run each queue in separate consoles php artisan queue:work --queue:q1 php…
Kumar V
  • 8,810
  • 9
  • 39
  • 58
2
votes
1 answer

Laravel(Lumen) unique validation rule for an array data when updating

I am trying to add a unique rule on an array of data and wants to ignore the unique rule to a given id when updating the same record. When creating a new record I am using rules like $rules = [ 'provider.*.link' =>…
2
votes
1 answer

Lumen Getting Header Keys from Request

I'm implementing Authentication in API using Lumen framework. I'm passing api_token in the header on localhost it's working fine. while uploading on Linux Server, it gives a null value in api_token header. I'm using postman to check the…
Usman Hafeez
  • 357
  • 1
  • 7
  • 20
2
votes
2 answers

How to secure API endpoints without user authentication

I am creating a SPA using angular2 & lumen 5.4. Lets just say there are two routes. One GET route that returns JSON data to display, and one POST route for uploading files to the database. Its an in-house app that will have no login (this is out of…
ghan
  • 525
  • 11
  • 24
1
2 3 4