Gsom1 Gsom1
2
I started a new project on Lumen and found that there is no artisan config:cache. What is the best way to cache config, routes in Lumen?...
Marinario Marinario
5
The contact form work like a charm. There is no problem on sending the email, receiving all the info etc. The problem is that sometimes when submitting the form the email would not always be sent. When first time fails and perform a hard refresh and...
Jonas_TAS Jonas_TAS
0
Hey everybody! I'm using the lastest version of Lumen for an API project, that needs a recurring task operation. Lumen itself has no documentation on that. For the laravel documentation, the command schedule:work is proposed for local testing. But Lu...
qogogexe qogogexe
2
If no anyway to use that in the lumen?...
erhsaikhasif erhsaikhasif
2
Hello, I want to define functions somewhere in lumen and this function as common function in controllers. As for example to define function rand_String() function somewhere and use this function in controller file. Please help me, I am new in lumen....
kamleshcgtechno kamleshcgtechno
1
https://github.com/tymondesigns/jwt-auth I have setup jwt-auth package in Lumen 8.0. Everything is working well until access_token is expired. I have some queries: Does jwt-auth support JWT_REFRESH_TTL in Lumen 8.0? If jwt-auth supports JWT_REFRESH...
deep88 deep88
2
hi friends , i am making api first application using lumen, i want to implement localization in it.. can anybody tell me how can i implement localization in lumen...
ilmoralito ilmoralito
3
Hi everyone, we are new to Lumen, and needs to add Localization to a small app, we are following https://laravel.com/docs/5.2/localization but when try to configure The Locale in lumen there is no config/app.php file so the question is can we use boo...
Hrach Hrach
4
Can't find documention on how to use localization in Lumen framework,does anyone know how to use it?...
delphinoy delphinoy
17
Why is this query working on MySQL Workbench but not on Lumen? Query: SELECT * FROM domain_apps WHERE date(created_at) = "2021-02-04" and macaddress= "BC-2D-EF-1C-DB-AB"; I'm getting records. Lumen code: $results = DB::select( DB:...
imJohnBon imJohnBon
4
I'm currently trying to implement a Middleware in Lumen that makes it so that if someone types in a URL like this: /users/self It will replace "self" with the current logged in users ID, so when it gets to the controller the $id parameter i...
vkronlein vkronlein
0
I'm in the process of building a headless cms with all the same functionality that you get in Strapi out of the box, but for PHP. I've already got a great start going using Lumen to keep it as light as possible. I've implemented JWT and it's working...
mohafiz mohafiz
3
I am working on a microservices project, am using rabbitmq with this package https://github.com/ssi-anik/amqp. Currently I can publish messages to various queues, but don't know exactly where I should put the code that is responsible for consuming th...
mohafiz mohafiz
5
Hello, I am moving an application from monolithic to microservices approach in Lumen, in the monolithic app I have orders table and products table with a one to many relationship between them. Now in a microservices approach it's reasonable to have d...
bmitch bmitch
3
Usually when developing our team will use Laravel and most of our code for the project will be a separate project required via composer, similar to the old workbench in Laravel 4. Then in our project we'll use orchestral/testbench to run our tests wh...
mohafiz mohafiz
4
Hello, I am developing a microservices app with lumen, I have two services, Auth and Order. The Auth service is where I handle authentication logic, register, login, ...etc. In Order service I have the logic of submitting new order, get the order sta...
krie9er krie9er
9
Hello dear community, I am a bit confused, because I have some issues in getting the scopes/differences of lumen vs sanctum and lumen vs passport. sanctum vs passport is pretty clear. Passport provides a full OAuth2 implementation and sanctum doesn't...
LiamA replied
Solved
skyturk skyturk
3
Hello Dear Laracasts Community. My problem in Lumen. I created new Vivense.php file in Api folder in Controllers. But my executer (Browser) said Class ..... does not exist. How can i resolve this problem. By the way my vivense.php folder's have Viven...
nategg replied
Solved
codecheef codecheef
1
How to Create Custom Helper File in laravel 8? https://codingspoint.com/how-to-create-custom-helper-file-in-laravel-8/...
Saeedsikandar Saeedsikandar
9
Routing is not working in my project except '/' I change all permission to 777 and fix all htaccess file fix public/index.php file but nothing changes...
gcbenlloch gcbenlloch
5
I cant figure out how to get the timestamps formated the same running eloquent and with a query $query = DB::table('libros'); if ($request->user()->isTutor()) { $query->where('desactivado', false); } $libros = $query->get(); // &q...
adam.harvie adam.harvie
4
Hi all, I recently upgraded from Lumen 5.0 to 5.2. I have Facades enabled and a helper class that uses the App facade to resolve a custom service provider. This worked until the upgrade and now I get a "Class 'App' not found" error. The hel...
danielmarklund danielmarklund
3
Hello everyone. I am just wondering if anyone here has any tips on how to get started with multi tenancy in Lumen? I have tried a few libs for just this purpose with Laravel 5, however these does not work with Lumen. Thank you in advance....
jwhm jwhm
1
With Laravel Lumen, is it possible to bypass Authentication through Token when the request is from the localhost?...
jvbalcita jvbalcita
2
I have a Laravel Application that is currently using API. We are making a microservices work that would be able to make Lumen create all the APIs but still have Laravel as our main app with Sanctum Auth since Lumen doesn't have Sanctum Auth. And we a...
Kureli Kureli
4
I am using Lumen 8.2.3. i am trying to submit form with ajax. i am trying to send token and i have error *Call to undefined function csrf_token()* i added this in app.php: $app->routeMiddleware([ 'csrf' => 'Laravel\Lumen\Http\Middleware\Ver...
karlkras karlkras
2
Working through a number of tutorials on creating microservices using the lumen stack... one thing I'm as yet to find is information on best practices/techniques on the deployment and hiding sensitive information that may wind up in the .env file. Wh...
margusheinmaa margusheinmaa
2
Hello, I'm getting the following error on a queue run, I'm right now forcing the job to fail, to get it logged, but for some reason it's not working and fails because of a SQL error, field is not filled and not sure why [previous exception] [object]...
karlkras karlkras
1
I'm looking for information on best practices of how to build out a deployable lumen microservice in a docker container. Not using docker on how to simplify development (lots of information on this) , but how to generate a docker image out of my lum...
yisusvzq yisusvzq
11
Hi everyone, I'm currently developing a tiny and simple API with Lumen. I need to implement authentication for users, but I would also like to have control of the applications that are requesting my API. This is the case: I'm having two kind of route...
timberwolf timberwolf
3
I am building a new API over a legacy database, so there's a mix of preexisting tables with new tables I'm setting up from scratch. I'm trying to use Schema Builder and migrations for the new tables. I notice some of the artisan:migrate commands beco...
Evanz Evanz
3
I am using lumen as my api and attempting to return paginated user data with the respective user images that are uploaded to the server, but I have no idea how to implement this functionality. I am returning this data to my mobile app but I am unable...
Evanz Evanz
3
I am using Lumen 7.7.2 for my api. I have enabled cors using this tutorial https://github.com/digiaonline/lumen-cors, but in my Ionic application the cors error disappears, however sometimes the api works well and returns the expected results and som...
untymage untymage
1
In lumen app there is a Job class which implemented ShouldQueue interface, How can i ignore this for one sub class ? is there any method something like sendSync in lumen ? <?php namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Co...
spbaniya spbaniya
0
In lumen 8 and using https://github.com/vyuldashev/laravel-queue-rabbitmq, with even basic laravel code for Batch queue, I'm getting error Cannot bind closure to scope of internal class Closure The code is $batch = \Illuminate\Support\Facades\Bus::ba...
Create a New Discussion Button