Most voted "lumen" questions
Lumen is the perfect solution for building micro-services based Laravel. In fact, it is one of the fastest micro-structures available. It has never been easier to write incredibly fast services to support your Laravel applications. If the question is not about "Lumen", do not use this tag, even if you are using "Lumen" in your project.
Learn more…31 questions
Sort by count of
-
6
votes1
answer384
viewsCategory tree in Mongodb, how to model?
Good night, you guys. As Mongodb changes a lot our way of modeling a database, I came across a question that can be up to half beast. I’m doing a Restful API using Lumen and Mongodb as a database,…
-
4
votes1
answer239
viewsDownload File via API + Lumen + Maatwebsite Excel
I have an Angular 5 application that requests the backend made in Lumen 5.6, in this backend, I have a function that creates an excel file, with the Maatwebsite Excel library, for download. However…
-
3
votes1
answer761
viewsLumen and Firebird Database
Lumen and Eloquent can be used in a Firebird database that is already used by another application, without the ORM making changes to the database structure? Another detail: it is possible to access…
-
3
votes1
answer215
viewsValidating routes in Lumen
In the Laravel have for example: Route::get( '/produtos/mostra/{id}', 'ProdutoController@mostra' )->where('id', '[0-9]+'); How this kind of validation would be done in the Lumen? Given that a…
-
2
votes1
answer515
viewsException Handler having return in JSON
I’m building a Restapi using Laravel/Lumen, in tests can occur the return be totally in HTML, this occurs when it appears that already famous screen: Whoops looks like Something Went Wrong This gets…
-
2
votes0
answers104
viewsHow to add Reliese/Laravel in the latest version of the Lumen/Laravel app?
I just installed the Lumen and I’m gonna need to use the Reliese to create Models (and Migrations) from an existing database. Following the documentation, after the installation I need to add…
-
2
votes1
answer216
viewsController exists but Lumen says it does not exist
My routes are like this. http://localhost:8080/api/v1/Communities <- this is the url I’m requesting $app->group(['prefix' => 'api/v1'], function($app) { $app->get('/',…
-
1
votes1
answer552
viewsRelationship between various tables in Eloquent
I am trying to create the models in Lumen based on my current database for a virtual store, but I am having difficulties to configure the relationships between them. So far I have the following…
-
1
votes1
answer130
viewsError using Middleware on Laravel/Lumen
Personal talk I’m making the following mistake: ReflectionException Class Illuminate\Cookie\Middleware\EncryptCookies does not exist I’m using Lumen but I think I may have set something wrong in the…
-
1
votes1
answer86
viewsAuth::loginUsingId does not work on Lumen
I’m trying to use the method Auth::loginUsingId in Lumen, but I get the following error : (1/1) Badmethodcallexception Method loginUsingId does not exist. in Macroable.php (line 74) at…
-
1
votes3
answers781
viewsProblem with CORS using Ionic and Lumen
I’m developing an app with Ionic and using Lumen in the backend API. I am having problems with 'CORS', already configured the server (both using the internal PHP server and Apache, and the same…
-
1
votes0
answers753
viewsHow to use Eloquent without losing performance (51.39%) in Lumen 5.4?
Developing an API that should handle a high performance website. Doing some tests I verified that the use of Eloquent is downloading the performance of the requests in the database Mysql in 51.39%…
-
1
votes1
answer119
viewsPHP - Lumen: update returns true but does not update the data in the database
I’m a beginner in PHP - Lumen and I’m doing my first api. All my methods in the controller are working, except the update. Even if it returns true, the data is not changed in the database. public…
-
1
votes0
answers34
viewsAngular 6 with broken Laravel/Lumen JSON
Guys I’m sending an angular post to a Windows/Internet application, but my JSON arrives broken. Now when I send by Postman, it arrives this way. follows my Angular code cadastrar(register:…
-
1
votes1
answer231
viewsValidation Lumen/Laravel does not work
I am creating an API using Lumen v5.8, and before saving the data in the database I am validating data from an array sent by the user but the data never pass the validation. Controller <?php…
-
1
votes0
answers41
viewsLumen - Middleware running on all requests
I created a Middleware which is working perfectly, but it is running on routes that I have declared in the route group and is also running on other routes that I have not declared. Example: Route 1:…
-
1
votes1
answer75
viewsPHP connection - Lumen
I am learning PHP with Lumen and came across a problem in the api connection string. I have mysql installed and can use it normally via Workbench. When I click to see the connection information, an…
-
0
votes1
answer84
viewsUsing DB in Middleware Lumen
I am trying to get an instance of the DB class inside my Middleware and is giving the following error: Class 'DB' not found public function handle($request, Closure $next) { $results =…
lumenasked 7 years, 8 months ago AndersonSouza 339 -
0
votes1
answer56
viewsHow to install only autoload and Laravel routes in a new project?
We are doing a test with a new project for a high traffic site (a few hundred, or thousands, of users per second) and wanted to know if there is any way to install only the route system and autoload…
-
0
votes1
answer41
viewsMigrations giving error 42000
I’m trying to spin mine Migrations (php Artisan migrate) inside my docker container. I’m using Lumen to develop my API. I don’t know what could be going on: What might be going on? I’ve refilled my…
-
0
votes0
answers418
viewsUbuntu 16.04 Lumen PHP and Apache, only works the route / the others do not work
Hello, I use Ubuntu 16.04 and installed apache and Lumen. I created a Lumen test project called financas. The project folder is in the /var/www/html/sub-zero/financas folder when accessing my…
-
0
votes1
answer262
viewsField validation in Lumen 5.5
In Lumen version 5.2 the following validation in the Controller is working: $this->validate($request, [ 'nome' => 'required', 'email' => 'required|email', 'cpf' => 'required', ]); Iofc…
-
0
votes1
answer191
viewsModularize only Views of Laravel
I have the following structure: - resources/ - views - Modulo1 - view01.blade.php - Modulo2 - view01.blade.php However I have a problem, I can not use the directives of Lade without conflict, if I…
-
0
votes1
answer62
viewsError deploying to Azure Service Apps
I am having the following problem, I am using the deploy service of Azure, I am trying to upload an application in Lumen ( php ). I can even go up but when I make a request inside the application…
-
0
votes2
answers38
viewsExpose an object ( based on request ) for every application
Oops, I don’t know if it’s possible to do what I want, but come on: I have a Lumen api that basically reads a specific request header and parses it into a YAML file and turns it into an array, but…
-
0
votes1
answer23
viewsLumen: I need to display two dates in a single field
I have to return a json that displays a Person object that contains Another Experience object. I’m using hasMany in Model Person and returning Json that way: $person =…
-
0
votes2
answers83
viewsPHP Lumen - TDD test Image upload does not work in PHP’s Lumen framework
I’m trying to create a test method for uploading images using the PHP framework (Lumen). However I am having problems with the following Uploadedfile method: $request->file('images') it always…
-
0
votes0
answers36
viewsInstalling Swagger-PHP in a Lumen 8 project
Hello! First, I set my file web.php in this way: /** * @OA\Info(title="My First API", version="0.1") */ /** * @OA\Get( * path="/api/resource.json", * @OA\Response(response="200", description="An…
-
-1
votes1
answer94
viewsQueue is created but never executed
I’m trying to create queues to fire push notifications and emails from an API with Lumen. I got the Warninguser class that makes the shots like this: <?php namespace App\Utils; use…
-
-2
votes1
answer81
viewsLumen blocks only one route on CORS, all others work
I have a system that was working, but suddenly it stopped working. Giving error "No 'Access-Control-Allow-Origin' header is present on the requested Resource" Etou using Lumen with…
-
-2
votes1
answer487
views