chaevnicher chaevnicher
0

Cookie to response

Hello, I requested illuminate/cookie, $app->singleton('cookie', function () use ($app) { return $app->loadComponent('session', 'Illuminate\Cookie\C...
Lumen
0
15
chaevnicher chaevnicher
1

PDOException SQLSTATE[HY000] [2002] No such file or directory

(1/2) PDOException SQLSTATE[HY000] [2002] No such file or directory (2/2) QueryException SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from u...
Lumen
1
42
chimit chimit
5

Email Verification in Lumen

Recently, Laravel added a convenient way to verify emails on new registrations. I tried to apply it to Lumen but cam...
Lumen
5
80
MrFiliper MrFiliper
7

Method attempt does not exist or Auth guard driver [api] is not defined.

I use Lumen 5, and I'm having trouble with using authentication. I have uncommented $app->register(App\Providers\AuthServiceProvider::class); $app-...
Lumen
7
499
preciousKeyz preciousKeyz
1

Extend JWT Auth Token Expiry into the future

I am building a backend to be consumed into a Web & Mobile App and wouldn't want users kicked off every time token expires. I want to extend token expiry each time user...
Lumen
1
32
salvador98 salvador98
2

custom exception in lumen

hi . how i can make custom exception ? i use this but not work <?php namespace App\Exceptions; use Exception; class RobotException extends Exception {...
Lumen
2
56
ahmednawazkhan ahmednawazkhan
2

Automatic resolution error in laravel lumen

the error is Argument 1 passed to App\Http\Controllers\PostsController::show() must be an instance of App\Post, string given in Posts...
Lumen
2
44
priti priti
3

Implement Rabbitmq queue

Hi, I have installed - https://github.com/php-amqplib/php-amqplib...
Lumen
3
378
danyal14 danyal14
1

Laravel/Passport for Lumen

Hi Guys, I am not able to implement laravel passport in Lumen, since Passport is not officially supported in Lumen, then I used dusterio/lumen-passport that worked f...
Lumen
1
78
diaglyph diaglyph
3

Lumen and Filesystem - Driver [] is not supported

I'm using Lumen to make an API and I need to read/write files within the Storage folder. I've set up special "disks" for this purpose. I have a results folder lin...
Lumen
3
79
ken4ward ken4ward
3

Querying a single user from Lumen API

Kindly help me on how to write the api route on querying a single user. I have the one that returns all the records in the database. This is the route...
Lumen
3
94
jcalonso jcalonso
10

Lumen - Route with optional parameters

Hello, I'm starting new app with Lumen and I'm trying to create a route with optional parameters like this: $app->get('user/{param?}',[ 'as'...
Lumen
10
402
trogne trogne
2

proper way to override vendor config

In Lumen, there's no app/config folder. So, for a heroku site, when deploying, all changes that was made to vendor config folders will be lost. Say I want &qu...
Lumen
2
69
VoidMrVoid VoidMrVoid
2

Why Lumen ignores exceptions out-of-the-box?

Hi. I've noticed that Lumen is ignoring some exception handlers while Laravel does not. Why?...
Lumen
2
52
testlara testlara
1

? Encripted API possible ?

Is there any way to encript api so that no one can get data directly if he runs it from emulator/restclients/or any api call by reverse engineering the app ...For example y...
Lumen
1
42
CH17 CH17
5

Lumen errors not showing

Hello, I'm trying a fresh install with Lumen. Everything is fine except error page showing blank. No messages. Not even "Whoops, looks like something went wrong."...
Lumen
5
205
trogne trogne
10

solution to axios.post cors problem

What is a WORKING solution to the axios.post cors problem ? I have cors setup in Lumen, with a cors middleware. In my frontend, when I do "axios.post&quo...
Lumen
10
226
dmahesh1705 dmahesh1705
1

How to achieve deferred service provider mechanism in Lumen?

Its very sad to know that there is no default implementation for deferred service provider mechanism in Lumen. Still is there any possibility to achieve this f...
Lumen
1
52
rsodhia rsodhia
1

Using Illuminate Cookie package with Lumen

I'm struggling to figure out how to use the Cookie package from Illuminate in Lumen. So far, the best I've see is a suggestion to include the package and then add the follo...
Lumen
1
63
JayDee84 JayDee84
2

How to remove or replace accents of a string

Hello Developers, I have a string called $translation with about 350 translations and these translations are for about 22 Locale. ex: $translation = Ă„nderungen etc....
Lumen
2
56
dmahesh1705 dmahesh1705
0

Laravel/ Lumen formRequest throwing error on submitting all valid values

I'm using this library for formRequest feature in my Lumen application. I had...
Lumen
0
51
hedii hedii
2

Hack to know if is lumen or if is laravel

Hi, very stupid question... Is there a way in a lumen app or laravel app, to know on which framework we currently are? Even a hack? Something like:...
Lumen
2
112
trogne trogne
1

observer not hit

I have an observer, and it's not hit on update. In "AppServerProvider.php" : public function register() { die('this is hit')...
Lumen
1
56
mooseh mooseh
0

Redis Queue possible extra field?

Hi Everyone So basically im using a redis queue worker in lumen 5.5 and currently when i list my current queue using the 2 commands there are no timestamps for when...
Lumen
0
43
danyal14 danyal14
1

WebSockets / Webhook

Hi Guys, My experience with WebSockets or Webhooks is not that good, I have following use case. /breakingnews notify platform (website & mobile devices)...
Lumen
1
80
marvinjudehk marvinjudehk
6

No application encryption key has been specified. (Lumen)

i am trying to use lumen-passport( https://packagist.org/package...
Lumen
6
171
danyal14 danyal14
3

Lumen PHPUnit lost post data

Hi Guys, When running following test, in controller action $request->json() get nothing, even $request contains nothing. // Test $this->post('/a...
Lumen
3
146
williamxsp williamxsp
2

Lumen + Service Layer - Display Error Message

Hi, Im trying to create a service layer and Id like to throw error messages from my service class. If I do the validation inside the controller it w...
Lumen
2
97
danyal14 danyal14
4

Eloquent Mutators and Accessors in Lumen

Hi Guys, I am trying to update a field, using "Mutators" change to database is not happening. Any Idea In controller $breakingNews =...
Lumen
4
105
engrlaravel engrlaravel
14

Mail::send not working in lumen

I am getting this error Unable to resolve NULL driver for [Illuminate\Mail\TransportManager]. on Manager.php on line 62. i followed this link...
Lumen
14
116
williamxsp williamxsp
2

Can Middleware

Im trying to use can middleware inside my web.php file and it says that Class can does not exist Do I need to register something to get this...
Lumen
2
62
danyal14 danyal14
2

Lumen config folder is missing

Hi, I know Lumen doesn't include config folder in framework but in vendors. My question is how can I define custom env variables as I used to do in Laravel. I...
Lumen
2
87
ken4ward ken4ward
5

Object of class App\\Repository\\UserRepository could not be converted to string

I am presently using the repository but kept getting the error UserRepository class { $users = User::all();...
Lumen
5
244
mamreezaa mamreezaa
3

Return a model with dynamic eager loading

I have the following table structure. sellers has many warehouses warehouses has many phone numbers warehouses has many emails...
Lumen
3
71
chorajunior chorajunior
4

Maybe I don't know what a router is :(

I said earlier with a colleague that Lumen was a router and we started to talk about it. He didn't agree with me, saying that Lumen is not a router, but didn't tell me the...
Lumen
4
58
Create a New Discussion Button