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.

Lumen is the perfect solution for building based micro-services and blazing fast APIs. In fact, it's one of the fastest micro-frameworks available.

Feature Overview

  • Templating
  • Caching
  • Command Scheduler
  • Controllers
  • Eloquent ORM
  • Error Handling
  • Database Abstraction
  • Dependency Injection
  • Logging
  • Queued Jobs

Documentation

Other notable tags

Community

Other Useful Resources

2610 questions
0
votes
1 answer

Delete current database in MongoDB using Jessenger / Lumen

I am using Jessenger in Lumen for handling MongoDB. I have a scenario where I need to delete/drop the current database. For example, in mongo db, I am executing the following queries. use '367'; db.dropDatabase(); Where 367 is a database. I want to…
Shahid Rafiq
  • 669
  • 1
  • 12
  • 27
0
votes
1 answer

Lumen v9 missing php artisan schedule command

in lumen v8 I had access to artisan schedule:* commands. After upgrading lumen to v9: "laravel/lumen-framework": "^9", The artisan command console is missing the artisan schedule:* commands (like artisan schedule:run)! Were they removed in lumen…
Shawn Naquin
  • 73
  • 10
0
votes
2 answers

Handle multiple requests in Guzzle between two Laravel projects at same time

I'm working in two projects, a Laravel 8 project and a Laravel Lumen 8 project, both of which use Guzzle to make HTTP requests, they're running on the following domains: Laravel 8 http://localhost:8000 Laravel Lumen 8 http://localhost:8001 And I'm…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
0
votes
0 answers

Laravel Lumen Guzzle times out with no obvious reason why, error code 28 curl

I'm currently working on a Laravel 8 project, I have two projects: A Laravel 8 project used as an API, it exposes some endpoints A Laravel Lumen 8 project which runs on it's own domain. Both have Cors enabled, and both run on the same domain, I'm…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
0
votes
1 answer

PHP PDO returning no records but SSMS does for the same SQL query

I have a conundrum that appears to defy logic, involving Lumen, PHP, PDO, and SQL Server. I have a controller which contains an action, that executes a stored procedure on a QL Server instance before returning the results as a JSON string. Nothing…
Jim Grant
  • 1,128
  • 2
  • 13
  • 31
0
votes
2 answers

Result of an SQL inside the item with $appends

I have the following files: LicensesController.php: namespace App\Http\Controllers; use App\Models\License; class LicencesController { public function showLicense() { return License::query() ->join('plans',…
0
votes
1 answer

consumption of kafka message on lumen

I am very confused. So any help it will be very wellcome. I am trying to deploy a lumen app, that can consume message from kafka. I have gueesed that queue could be the right apporach to the problem, but i cannot find a path to solve the problem. I…
JahStation
  • 893
  • 3
  • 15
  • 35
0
votes
1 answer

Laravel (Lumen) Eloquent querying with WHERE on a relation (Multi-level)

I have the following DB tables: Purchase -id -workplace_id Workplace -id -client_id (and obviously some more fields, but for the example these are all the needed ones). I would like to make a query like this: SELECT * FROM purchase INNER JOIN…
Lippai Zoltan
  • 188
  • 2
  • 10
0
votes
0 answers

Laravel Lumen queues job fails and throws method_exists(): The script tried to execute a method or access a property of an incomplete object

I'm working on a Laravel Lumen project. My Lumen project is connected to my database where another Laravel project connects, I'm splitting the load by using Lumen here. I've created a Job in Lumen and nested this in a directory called Reports inside…
Ryan H
  • 2,620
  • 4
  • 37
  • 109
0
votes
1 answer

Lumen Passport return 500 except successfully log in request

I've created Lumen Passport in my local and free Heroku and successfully created it. Now I’m creating my production lumen in digital ocean VPS. All of my applications work fine and give good bad responses format when it should be failed responses,…
Averlyn
  • 11
  • 4
0
votes
1 answer

Laravel Lumen directly Download and Extract ZIP file to Google Cloud Storage

My goal is to download a large zip file (15 GB) and extract it to Google Cloud using Laravel Storage (https://laravel.com/docs/8.x/filesystem) and https://github.com/spatie/laravel-google-cloud-storage. My "wish" is to sort of stream the file to…
Wouter Doornbos
  • 124
  • 2
  • 13
0
votes
0 answers

In Lumen API with passport authentication showin CORS issue in React JS

I have created API in Lumen and authenticated by Passport, The API without auth(login API) is working fine API but the API which has Auth middleware showing CORS issue.
Priya Goud
  • 95
  • 7
0
votes
0 answers

Laravel Lumen authentication events

Does Lumen authentication events works as well as Laravel works? I have registered Login event but the event does not get dispatch when a user login /** * The event listener mappings for the application. * * @var array */ protected $listen = [ …
MMD
  • 35
  • 6
0
votes
0 answers

Lumen Encrypted Key Decrypt in Node JS

I have a session cookie which is encrypted in Lumen Framework. https://lumen.laravel.com/docs/8.x/encryption I am trying to decrypt cookie in Node Js using crypto-js but I get an error message Error: Malformed UTF-8 data at Object.stringify I have…
sonia kaushal
  • 495
  • 6
  • 5
0
votes
1 answer

Loading small amounts of data from Lumen API time

I have an API built in lumen and I plan to consume the API json response in the frontend using a single page framework like Angular. The problem is the response from some routes contain huge amount of data which is aprox 50000 rows as of now. I…