Caracorn Caracorn
2
The *.env file of Lumen can be read without any problems. Why is it so? I had to set up an htaccess-deny manually. Isn't that out of the box? Many thanks....
Caracorn Caracorn
2
Hello! From an external API I get temporary the response of an url for a image on that server. So I have to 'have' this image on my server within a short time. How do I get it safely? I was told not to use the PHP function 'file_get_contents' or to s...
untymage untymage
1
in .env file (lumen app) the log channel is stack but when i get error it rename the file in current day but i want like it as lumen.org...
Nakov replied
Solved
Moosewala Moosewala
6
Hello, I know Lumen is like Laravel but for API. But it is really worth it ? I have few question because I wan't do make an API. 1- Is lumen is going to stay as lumen and not be deleted in the future ? I mean Laravel is not going to be like SF4 and p...
BrownieCoffee BrownieCoffee
1
Hi there, I have difficulty to do update and delete forms. I use method = PUT and method=POST in my forms. I use $router->put() and $router->delete() I tryed to use @method('PUT') and @csrf but those give my errors... can you help me please? Th...
sangramss sangramss
2
Hi What’s the best way to implement authentication system in Lumen? Could anyone guide me to any useful resource? Thanks in advance. Cheers....
russellwwest russellwwest
1
I am using Lumen for my API. I have a PUT method for updating a product. However, the data is not available in the request object. Why is that? I've seen a few mentions of having to "fool" it by adding _method = put Surely for an API frame...
I have a route with the Illuminate\Routing\Middleware\ThrottleRequests middleware as such: $router->group(['middleware' => 'throttle:1,1'], function () use ($router) { $router->get('/someresource', '[email protected]'); }); And...
johnf johnf
15
Hey guys, Storage is available on Lumen?...
hogaso replied
Solved
JillzTom JillzTom
3
I've just upgraded to Lumen 5.3 from Lumen 5.2. I'm trying to use the inbuilt store method as below: $request->file('file')->store('avatars'); But, I'm getting the following error: Target [Illuminate\Contracts\Filesystem\Factory] is not instan...
BrownieCoffee BrownieCoffee
7
Hi there, I'm trying to build a quiz and there are 5 questions. Each question has 3 choices and 1 choice is correct. 1 selection is possible. I'm trying to get the selected choices but my request()->all(); return empty array .... Can you help me p...
umair33 umair33
11
i am trying to pass more then one optional Parameter in my route 'middleware' => 'auth:api', 'prefix' => 'api/v1' ], function () use ($router) { $router->get('import[/{name}/{info}]','[email protected]'); }); if info is em...
nuna nuna
1
I am trying to return back the form with the value of by use. But it is not working .Please help $rules = [ 'name' => 'required', 'subject' => 'required', 'purpose' => 'required', 'sen...
jlrdw replied
Solved
bazingo bazingo
0
I'm getting a seemingly random 500 error getting logged as "Database hosts array is empty" in the error logs. I'm seeing this maybe once out of 300 requests (guess). Repeating the request is successful. Other requests initiated at the same...
ramonnogueira ramonnogueira
6
I'm getting this error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'accounts_id' in 'NEW' (SQL: update users_act set stopped = 1, users_act.updated_at = 2020-10-15 14:06:48 where id = 3184); THE PROBLEM: Column 'accounts_id' is not in que...
nuna nuna
2
How to fix this error. $productExists = Product::on('tenant')->with(['brand'])->with('sub_products')->where('id', '=', $id)->first(); $quantity_check = true; if(!empty(json_decode($productExists->sub_products,true))){ (the er...
sakthivel sakthivel
2
Command : php artisan passport:install Error : array_keys() expects parameter 1 to be array, null given...
nuna nuna
1
$resultGetProducts = $dbh->query("SELECT * FROM " . env('DB_DATABASE') . ".allDBProducts ")->fetchAll(PDO::FETCH_ASSOC); I tried something like this but it returns null $resultGetProducts = $dbh->query("SELECT * FRO...
jlrdw replied
Solved
nuna nuna
3
if($request->sys_status == 4){ $sys_statu = 4; $role_val == NULL; }else{ $sys_statu = $request->sys_status; $role_val = $request->role; }...
sakthivel sakthivel
7
How to create a lumen package our own?...
sakthivel sakthivel
2
how to do lumen with SSO application?...
danielmarklund danielmarklund
1
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....
subarkah subarkah
4
I have one product table. Each product has a category. The category names are also in the same table. How do you display product data based on each category? I want to return a json response like this { "result" : "true", &quo...
untymage untymage
1
Hey, I really need to use closure jobs in my lumen app, But it seems not supported i mean this: dispatch(function (){ // }); Method Closure::handle() does not exist The differences dispatch implementation between laravel and lumen : laravel: f...
Halim Halim
1
Hi there, Is anyone used this package with Lumen, https://github.com/cviebrock/eloquent-sluggable I tried to install it but not work when I tried to publish it, I think Lumen does not support publish, and you should do it manually..., I did lot of s...
wecler wecler
0
Hello there, I've faced an issue today with the Laravel Scheduler. I'm using version 6.3.5 (Lumen but that doesn't matter as its the same implementation). I'm trying to make cronjobs that will be executed in a special order. For example I've got two...
ioanandrei ioanandrei
2
Hello guys, The new features from Laravel 8 like "Migration Squashing" will be available in Lumen 8 or to use them I should install a Laravel project? I created a new Lumen 8 project, but the new routing and commands are not working....
subarkah subarkah
1
I got an error trying to use brozot / Laravel-FCM on Lumen version 5.6. Ther error is Unable to resolve NULL driver for [LaravelFCM\FCMManager]. I've done some of the suggestions given, like reinstalling and clearing cache....
dadub dadub
2
Hello, I have this error : ```message "SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'project.hinteractions.id' which is not functionally dependen...
untymage untymage
0
web.php $router->get('/updates', [ 'uses' => '[email protected]', ] ); TelegramController.php protected Api $tg; public function __construct(Api $tg) { $this->tg = $tg; } AppServiceProvider.php $this->ap...
streamingsystems streamingsystems
1
Hi, For Laravel there are artisan commands that are run at deployment to cache configs, etc: https://laravel.com/docs/8.x/deployment I am wondering if there is the same (or equivalent) for Lumen? I am using for one of our projects and just want to ma...
alsyed alsyed
0
i am working on Lumen 6.0 and i have come across a very strange issue. i am trying to send the emails on mailable queue using ShouldQueue on my mailable class, but it would seem that mails are going normally not sending through a queue, as ShouldQueu...
untymage untymage
0
I want to use phpredis extension in my lumen project but i cant get it to work: composer require illuminate/redis .env REDIS_CLIENT=phpredis CACHE_DRIVER=redis app.php $app->register(Illuminate\Redis\RedisServiceProvider::class); database.php 'r...
rickyreza12 rickyreza12
4
This is the code that i have <td>{{$key}}</td> <td> @if(strpos(($break-1)->BREAK_ITALY, 'BREAK') !== false) <select class="form-control">...
m2basher m2basher
0
I am trying to use Pear XMLSerializer package in a Lumen project. I have install package using "composer require pear/xml_serializer" Now how i call it and use it in a class Thanks...
Create a New Discussion Button