salvador98 salvador98
3

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
3
2347
sekar_dev_14 sekar_dev_14
0

Lumen Form Request

I tried many form request packages for my lumen api project. i am getting error like :validate does not exist....
Lumen
0
24
henninghorn henninghorn
19

Lumen 5.2 Mail not working

Mail doesn't seem to work after Lumen 5.2 update. I'm using the facade use Illuminate\Support\Facades\Mail; And this is the error I'm...
Lumen
19
2456
petercontrains petercontrains
2

Routes NotFoundHttpException

How can you handle route errors for curious users who could inject other non-existent routes and generate errors, and not show error screenshot but direct or control this e...
Lumen
2
73
avivronen avivronen
1

Lumen debugger

When developing on laravel, we can use the laravel debugger to debug the queries. when developing on Lumen, what is the best approach to debug it and optimize? (as API's mo...
Lumen
1
855
c3422867 c3422867
2

Installing Lumen not working?

In Documents/Laravel I run: composer global require "laravel/lumen-installer" I then run: lumen new blog and then I run: php -S localhost:8000 -t public bu...
Lumen
2
71
vinubangs vinubangs
0

how to convert html to image

I am making an API in laravel lumen. I want to convert blade file into image in laravel. First I am converting blade file into html and then html to image. blade to html is...
Lumen
0
42
ibucur ibucur
1

API based on Lumen with Google, Facebook, LinkedIn OAUTH implementation ideas

Hi Jeffrey, I am interested into getting your best way of doing OAUTH for an API service built on Lumen. Let me describe a little. I will like to create a web...
Lumen
1
293
ravibastola ravibastola
6

Manage versioning in an api.

How to manage different versions of an api with Lumen? An approach may be to manage different routes pointing to different controllers but that seems way too redundant. Cop...
Lumen
6
570
KishorKurian KishorKurian
1

HasMany() only brings relations for first record

I have searched a lot for this, and I see a lot of questions saying the same, but I still cant figure out whats the issue or how to fix it. I am trying to make a lis...
Lumen
1
136
vinubangs vinubangs
1

how to convert blade file into html and save into folder

I am using laravel lumen for making an API. I need to convert blade file into html and save that file into image. I tried, but not working. my controller is:...
Lumen
1
109
vinubangs vinubangs
2

how to convert view file in image and return in api in laravel

I am creating an API in laravel. In which, I have to convert blade file into image and should return path of converted image or base64 in api. I am using html2canvas...
Lumen
2
252
Vaweto Vaweto
11

Wrong default DB connection

I have a problem with config/database.php. My app connects with multiple databases as seen below. return [ /* |---------------------------------------...
Lumen
11
1119
deepness deepness
2

Removing public url problem with subfolder installation.

Hi, I want to remove the public folder from the URL. I have tried to add the following .htaccess to root directory but got 404. <IfModule mod_rewri...
Lumen
2
135
vinubangs vinubangs
2

How to send image in postman

I am using laravel lumen to make API. I have to convert and save blade file in image and have to send image path in api. How to do that? I am not getting idea. I tri...
Lumen
2
147
KishorKurian KishorKurian
3

Using Response()->json from Helpers

Hello, I am trying to make a REST API backend for my app. To keep the API outputs same format from all places, I am using a helper with statis functions, to w...
Lumen
3
154
Junction Junction
1

Laravel/Lumen 7+ best practice to store One To Many relationship

Hello, I'm pretty new to Laravel ecosystem and want to develop with best practice as much as possible. What is the best way to store One To many relationship using E...
Lumen
1
136
nuna nuna
3

How to do sql query inside count clause

public function successful_redemption_count_between_date($start_date, $end_date) { $d = DB::select( "select `prod`.`product_id` AS `product...
Lumen
3
211
canfone canfone
1

Lumen 7.x "Target class [mail.manager] does not exist."

Hello, I recently upgraded to lumen 7.x and integrate the mailer. I followed the instruction in the docs (...
Lumen
1
399
pippuccio76 pippuccio76
2

Join query error

Hi sorry for english , i try to change a developer code on a site write in lumen , im new of laravel . This is the code : if (!isset($_SESSION['perpag...
Lumen
2
151
nuna nuna
0

How to call the data from lumen in laravel controller to check duplicate data

I have to make ajax call to check duplicate data.I am very new to this and desperately need help. I think I need to write something similar like this in the laravel contro...
Lumen
0
100
marcopierac marcopierac
0

Lumen 7 - Get registered route URI

Hello, i'd like to know if it's possible to get the registered route URI of the current request, in Lumen 7. For example, if i have the following route reg...
Lumen
0
97

Serverless architecture

Has anybody been playing with serverless architecture? I use a lot of AWS Lambda functions, all Node and no PHP but noticed...
Lumen
1
591
pushpak18 pushpak18
4

Getting error in blog/bootstrap/app.php file

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\htdocs\blog\bootstrap\app.php...
Lumen
4
471
Smilie Smilie
0

nginx 404

Hi, After working on my app locally, I deployed it to a test environment. Unfortunately I seem to be hitting a 404 no matter what I do. I use nginx with php-fpm. The...
Lumen
0
117
canfone canfone
2

Lumen 7 Class blade.compiler does not exist when building custom blade directives

I upgraded to Lumen 7.x and I can't figure out what did I miss. It returns Class blade.compiler does not exist . It seems some aliases are not properly loaded....
Lumen
2
472
moh1434 moh1434
1

Use laravel sanctum in lumen ?

How to make laravel sanctum work in lumen ?. i want to use it to authenticate my SPA apis...
Lumen
1
1118
Vikramforvk Vikramforvk
0

How to define private-file-access Route in lumen

private-file-access Route is working in laravel but not working in lumen When I hit api "...
Lumen
0
107
Robinhood05 Robinhood05
1

???-Best way to upgrade a Lumen 5.1 project to Lumen 7.0

I have a big project that has been developed using Lumen 5.1 and that includes several custom vendor packages. What I want is to upgrade the current Lumen 5.1 project into...
Lumen
1
483
Smilie Smilie
2

Logging processor

Hi, Does anybody have tips on how to include processors from...
Lumen
2
488
Zenkilies Zenkilies
1

Can't use Redis as cache driver due to "array_key_exists() expects parameter 2 to be array, null given"

When I calling Cache::get('message'); and "message" isn't set, received: ErrorException in Arr.php line 123: array_key_exists() expects parameter 2 to be a...
Lumen
1
744
marcopierac marcopierac
2

Handling incoming FormData

Hello, in my frontend i have the following object that i need to send to my backend: let obj = { a: 123, b: "test...
Lumen
2
509
marcopierac marcopierac
0

Extend or decorate Request in Lumen 7

Hello, i'd like to know if it's possible to extend the Illuminate\Http\Request class to alter the behaviour of some of its functions (in particular,...
Lumen
0
123
untymage untymage
1

Lumen queue: Method Closure::handle() does not exist

I tried to work with queue in lumen but it has error: dispatch(function (){ echo 'test'; }); ReflectionExce...
Lumen
1
456
elena elena
9

Can't manage redis connections dynamically

I'm working on a system where speed is the number one priority (milliseconds count). Since DB size is obviously inversely proportional to speed a while ago we decided to p...
Lumen
9
1243
Create a New Discussion Button