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

wahy change created at format in laravel api resource?

i defined created at format in baseModel like this: protected function serializeDate(DateTimeInterface $date): string { return Carbon::instance($date)->toIso8601String(); } but when i use api Resource, changed created_at format this is api…
mohammad
  • 95
  • 7
0
votes
1 answer

No output and not worked When I run [Artisan::call(...)] or [shell_exec(...)] in phpunit test, but when not in phpunit, it is ok

/** * @test */ public function xxx() { $exitCode = Artisan::call('queue:work'); //shell_exec('php artisan queue:work'); } Run Artisan::call(...) or shell_exec(...) in PHPUnit test, it is not working.
jinhin xu
  • 1
  • 1
0
votes
0 answers

Lumen 8 route fallback

i want my APIs to support routes fallback as the following : if the requested method (for example V4/some-method) does not exist V4 name space then search for it in V3 and if not search for it in V2 ...till found then redirect to it with same…
JokerDev
  • 151
  • 2
  • 15
0
votes
1 answer

Lumen: The new record with default values was added to database

I'm new to PHP and I've tried to make the small test full-stack project. I have Vue.js app on the client (frontend) and PHP (Lumen) on the server (backend). The code looks as following: Client: Vue component: async createPerson() { const…
tesicg
  • 3,971
  • 16
  • 62
  • 121
0
votes
1 answer

Lumen Redis queue connection error. Error while reading line from the server. [tcp://xxxxxx:25061]

I am trying to use redis as QUEUE_CONNECTION in Lumen 8.0. If I use the redis from the local server [127.0.0.1:6379] Then it's working fine. But I want to use a external redis server from Digital ocean. Here is my config in config/queue.php 'redis'…
Shakil Anwar
  • 141
  • 1
  • 10
0
votes
0 answers

How we can change Request URL for swagger in lumen

How we can change Request URL for swagger in lumen as shown in image I have tried to change SWAGGER_LUME_CONST_HOST but no use and when trying to set L5_SWAGGER_BASE_PATH from config/swagger-lume.php file then gives error as Unexpected field…
Satish A
  • 1
  • 2
0
votes
0 answers

Call to undefined method Laravel\Lumen\Routing\Router::fallback()

I would like to create a REST application 404 response, I have added the below code at the bottom of the router page, $app->router->group([ 'namespace' => 'App\Http\Controllers', ], function ($router) { require…
Kuppusamy
  • 453
  • 3
  • 11
0
votes
0 answers

Waiting for a command answer in laravel?

I am calling multi command in this command class: public function handle() { foreach ($this->argument('step') as $step) { if (command_exists("private:{$step}")) { $this->call("private:{$step}"); …
mohammad
  • 95
  • 7
0
votes
1 answer

lumen queue connection, database driver

Im struggling to configure the queue connection in lumen 8 project, im my database.php i have 2 connections lets say A and B, A to connect to DB_A and B for DB_B. my database.php looks like this : // database.php 'connections' => [ …
Mr.Sef
  • 49
  • 1
  • 4
0
votes
1 answer

Get transactions whose latest status is successful in laravel?

I have two table. this is transaction table: $table->ulid(); $table->string('payee_user_id', 36); $table->string('type', 36); $table->string('terminal_id', 36); $table->string('terminal_no', 36); …
0
votes
1 answer

group by result not exist in join other tabel laravel?

i have two table and one pivot table. settlement table is this: $table->ulid(); $table->string('track_id', 36); $table->string('payee_user_id', 36); $table->string('terminal_type', 36)->nullable(); …
mohammad
  • 95
  • 7
0
votes
1 answer

Call to a member function header() on null in Cors Middleware in lumen

hello everyone. I have cors middleware in my lumen as above. cors midlleware works normally when i make a request to lumen from my app. however, whenever a function that I need to send mail runs, I get the error "Call to a member function header()…
0
votes
0 answers

Laravel/Lumen : SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

I uploade my Laravel/Lumen api to server after I checked it on localhost. for any query I have using (Where) it gives me same error such as this: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select *…
Sermed mayi
  • 697
  • 7
  • 26
0
votes
0 answers

Can not delay a queue job in Lumen (Laravel)

I'm developing an API using Lumen framework based on Laravel. I've created a job that store some assets in my product interface management. Due to some API limits, I can not make more than 500 api calls in an hour, so I thought to create multiple…
KubiRoazhon
  • 1,759
  • 3
  • 22
  • 48
0
votes
1 answer

Lumen throwing error: Uncaught Error: Class 'Laravel\Lumen\Bootstrap\LoadEnvironmentVariables' not found in /var/www/bootstrap/app.php:5

I am working on a Laravel Lumen project. I am trying to spin up the existing project locally. First I installed the composer by running, "composer install". When I run the migration command, "php artisan migrate", I am getting the following…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1 2 3
99
100