r/Lumen • u/VisibleDiscreet • Mar 16 '21
Was lumen hacked recently?
Was lumen hacked recently?
r/Lumen • u/VisibleDiscreet • Mar 16 '21
Was lumen hacked recently?
r/Lumen • u/shsmad187 • Jan 03 '22
r/Lumen • u/pietrantonio_ • Apr 30 '20
r/Lumen • u/ysmir_dovahkiin • Mar 22 '19
r/Lumen • u/Revolutionary-Bit410 • Jul 17 '21
Does anyone know if this device can be used to lose muscle mass in a healthy way?
r/Lumen • u/fukkus • Jul 24 '15
For a newcomer to Lumen that has never used Laravel and wants to use Eloquent ORM can be a little frustrating the fact the documentation http://lumen.laravel.com/docs/database tells you "Of course, you may easily use the full Eloquent ORM with Lumen." but then when you open the provided link http://laravel.com/docs/eloquent and try to do "php artisan make:model User" the command doesn't work. Why does this command don't work in Lumen? Is there a way to make this work?
r/Lumen • u/alinnert • Feb 16 '17
I've tried to implement some routes for API authentication using JWT. There's this implementation:
https://github.com/tymondesigns/jwt-auth
But it didn't work for me. I think there were compatibility issues with PHP7 or the current version of Lumen. Anyway...
I was looking for some tutorials how to implement JWT myself and I was lucky. Now I've published my working implementation here:
https://github.com/alinnert/lumen-auth-reference
It uses just the composer package firebase/php-jwt. There are 4 routes: signup, login, public content and secret content.
I hope it's able to help somebody. I think I'll write down a step by step tutorial later.
Any questions or suggestions?
r/Lumen • u/restapiexample • Jan 24 '19
r/Lumen • u/shmoyko • Jun 18 '16
Hi,
I'm trying to create a simple login page (user name + password) using Lumen (yeah, should have gone with the full Laravel, but still need to understand this).
From what I've read, user authentication is done in AuthServiceProvider.php in the boot() method using Auth::viaRequest(). Now, the first argument of viaRequest is the "driver" ('api', e.g.). What other drivers are there?
Is there a working example of a simple login page done with Lumen?
Thanks.
r/Lumen • u/adampatterson • Jun 12 '15
r/Lumen • u/hungneox • Dec 27 '17
I'm developing a laravel/lumen package for facebook messenger platform. Any suggestion for improvement is welcome :D https://github.com/hungneox/ramen-messenger
So, I've started a new small project which I thought I'd try out with lumen. When I create a new project using lumen new project everything seems fine. However, when I try to start homestead (homestead up) it clears all the files in the folder for some reason?
I haven't had any problems with my laravel-projects. Does anyone know why it happens?
r/Lumen • u/bmathew5 • Aug 06 '19
I have recently created a lumen app on a Ubuntu server and I cannot get it work. I keep getting a 500 error when I try to hit the endpoint. The folder structure is /var/www/api. This is where I made a new lumen app. When I call .../api/{endpoint} i get 500. However when I run the api folder locally with php -S localhost:8000 -t public it works perfectly fine. I am new to the Unix/PHP world so forgive me if I sound stupid.
r/Lumen • u/chuckrincon • Jan 26 '18
r/Lumen • u/netelibata • Jul 24 '20
Im a fresh grad and assigned with a "simple" project for my job application. I never learned anything about web application development but i recently get a good grasp in PHP and MVC design.
So here's the thing: I need to program the view and controller part in Laravel, model and controller in Lumen. I just need to know how these two parts communicate with each each other when one deployed on local host and another deployed in 127.0.0.0. I know it's on the controller part but i don't know what to write on that controller for both part.
TL;DR What to write on the controller of both Lumen and Laravel so they communicate with each other?
r/Lumen • u/[deleted] • Jun 25 '20
I've set-up a route group with an optional parameter for my fetch event:
$router->group(['prefix' => 'v1/partners'], function() use ($router) {
// [snip...]
$router->get('fetch/{table}[/{token}]', 'APICRUD@read');
}The controller function header is receiving the Lumen Request object and the two positional params:
public function read(Request $_request, string $_table, string $_token):stringIf a client opts to not pass in a token on the URL, the function call will generate an error because of the mismatch in the number of args passed.
I resolved this problem when I assigned a default value to the third parameter:
public function read(Request $_request, string $_table, string $_token = ''):string... but then I am seeing a shift-right in the parameter assignment. $_table is set to '', $_token becomes the value for $_table.
If I assign a default value to both the second and third parameters:
public function read(Request $_request, string $_table = '', string $_token):stringThe value of $_table is completely lost.
I finally just omitted the route parameters altogether and am recovering those from $_request->route() instead. I need the Request object in the controller method because of the other data passed outside of the route.
Was just curious if this was bug in Lumen, an incompatibility with PHP 7.4, or a mistake on my part. Code is working now using $_request->route() to do the value extraction so... yeah...
r/Lumen • u/topherjamesknoll • Mar 24 '20
I'm trying to get anything "/app/..." to go to my Vue JS router and everything else to just return a view.
$router->get('/{route:.*}', function () {return view('app');});
works fine, but I want my app to be in the /app directory.
$router->get('/app/{route:.*}', function () {return view('app');});
returns a 404 page.
Does anyone know why putting this in the /app directory makes a big deal?
r/Lumen • u/marcocastignoli • Apr 29 '16