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
1
vote
1 answer

how to ask for input in laravel's lumen command line?

How to ask for input and loop it until user inputs in command line using lumen ? by the default I can create a custom command in the app/Console/Commands directory here's my current code
sasori
  • 5,249
  • 16
  • 86
  • 138
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
3 answers

Merge two json array into one

Tried merging two JSON responses into a single one but the problem is the data is displayed in two arrays and I want it in a single array. How do I achieve it in Lumen/Laravel Tried contatinating two arrays or responses public function…
Pushpendra Pal
  • 115
  • 1
  • 14
1
vote
0 answers

How to retrive all AWS SQS queue messages in lumen without dispatching

I am trying to fetch the AWS SQS queue messages using lumen Queue worker and SQS queue messages will be created by other API's which is on other end. How can I retrieve all the messages from queue and process it. I have created the job and installed…
Dev Ramesh
  • 353
  • 1
  • 12
1
vote
1 answer

How to add custom method to Lumen's response class

I'm using response method withHeaders(): return response(view('pages.top.index', compact('data')))->withHeaders(['one-param' => 'data', 'second-param' => 'data2' ...); And I have multiple same params that I put in withHeaders() method almost in…
whitesiroi
  • 2,725
  • 4
  • 30
  • 64
1
vote
0 answers

API url not found on server error

I have deployed an API built using lumen 5.4 on shared hosting. I'm able to hit the the main domain elomena.xyz but cannot access elomena.xyz/users Local server test with postman is successful but I get this error when i try to reach it from…
Mena
  • 1,873
  • 6
  • 37
  • 77
1
vote
1 answer

Lumen 5.5 Socialite Providers doesn't works with setConfig()

I use Laravel Socialite Providers (https://socialiteproviders.github.io/) to login user on Lumen 5.5 API. setConfig() method, to force config, doesn't works for me... Here below, my error and my code. The problem is that I do not know why I have…
pirmax
  • 2,054
  • 8
  • 36
  • 69
1
vote
1 answer

send data in postman body through postman other than sending parameters in http request url

i am working with Lumen Api Development and currently i am sending data in request, that sending parameters in url. Now i want to send parameters in body and getting confuse how to send parameters in body.Need Your Help! currently i am sending…
ahmad izhar
  • 150
  • 1
  • 13
1
vote
1 answer

How to get route parameters before the response in Lumen middleware?

I'm using Lumen 5.4 and I need to get a route parameter and process it to every request, so I've created the following middleware: namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Config; class StoreMiddleware { /** …
0
votes
0 answers

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": "^0.1.36", "illuminate/redis": "^9.52", "laravel/lumen-framework": "^9.0", "predis/predis":…
Rizwan Saleem
  • 904
  • 11
  • 28
0
votes
1 answer

Lazy load data in ngTable

I am working with ngTable in angular-1. I am fetching huge set of date with lumen API and its take too much time. So I will do it lazy API. and API working perfectly in postman, But how implement in ngTable in angular-1. I am new with ngTable.…
Jimit H.
  • 185
  • 1
  • 11
0
votes
0 answers

POST API's in Lumen (Cors Issue)

I am writing the API's in Lumen. All the GET API's are working fine in ReactJS using axios. But, POST API's are not working.I enabled the cors in Lumen by creating a middleware and use them in web.php routing file. But, still getting the same error.…
vikas dhiman
  • 297
  • 3
  • 19
0
votes
0 answers

Lumen file request returns an empty object

I'm using Vue + Axios and tried to submit file unto my Lumen app HTML Vue methods : { submit(){ var formData = new…
Juliver Galleto
  • 8,831
  • 27
  • 86
  • 164
0
votes
3 answers

Delete row from db after certain condition has been meet in laravel

My table has data id post_id description and dispose_time. I wanted to delete data from DB if current time and date is greater than the current time. $post = Post::delete()->where('dispose_time' > DATE_SUB(NOW())), INTERVAL 10 MINUTE)); something…
Pushpendra Pal
  • 115
  • 1
  • 14
0
votes
1 answer

Parse custom date and time by user through postman

I wanted to pass the custom data through postman but the problem is how do I parse date and time in a field at time? Initially I tried strtotime function but I wanted it along with the date. This is my post API: $post = …
Pushpendra Pal
  • 115
  • 1
  • 14