Questions tagged [Lumen] (1)

1
answer

Why does not the DELETE?

Good day! Work on the project, which has an API that you created in Lumen 5.7. Add a little functionality, but have run into a problem. When you try to send DELETE request, receive the response 405 "Method Not Allowed". Routing // A little higher grouping by prefix, so /primary/servers not listed here $router->get('favo...
Marco asked April 9th 20 at 09:57
0
answer

How to analyze the performance of PHP scripts in the Lumen?

Hello. We have a HighLoad project. As backend we use the framework Laravel Lumen. With the increase in traffic began to fight in the cutoff server. Servers not weak. Used memcached, opcached. How can you perform the script? Ie to know what the script method or class is done how much time and how many resources eats to optim...
maurine73 asked April 4th 20 at 13:29
1
answer

How to use Blade template engine in Lumen?

In the previous version used the package jenssegers/blade, but with the new version it doesn't work. Is it possible to use the Blade templating engine separately from Laravel?
Luella_Monahan asked April 4th 20 at 12:55
2
answers

How to install websocket on Lumen (Laravel)?

Can't solve this problem: Mounted on the Lumen Pact websocket Took the most common example examples Server:require_once('vendor/autoload.php'); $socket = new \HemiFrame\Lib\WebSocket\WebSocket("localhost", 8080); $socket->on("receive", function($client, $data) use($socket) { foreach ($socket->getClients() as $item) ...
dayna29 asked April 3rd 20 at 18:31
0
answer

The correlation between the parameter names in .env and fields in config/database.php in Lumen?

Any parameter from, for example, the config file config/database.phpyou can "make" in .env ? If any how to make a good name? For example, one non-default Redis konnekshn. For example, REDIS_HOST=redis in .env successfully replaces the parameter ['redis']['default']['host'] in config/database.php in the absence of such a fil...
idella asked April 3rd 20 at 18:15
0
answer

How to build a route?

Good time of day. Deployed a small project (part) in the Lumen 5.7, which performs the role of IPN/Webhooks listener. It was also decided the events of the IPN be split into groups on separate routes (PAYMENTS.CAPTURE.CREATED PAYMENTS.CAPTURE.DENIED PAYMENTS.PAYMENT.CREATED are grouped and sent to the route ipn.site.com/gat...
Ronaldo.Russel asked April 3rd 20 at 17:28
2
answers

Why route() returns a strange URL for a named route?

There are such routes. When you go to the website will redirect to /test - named route, which has two parameters, each of which is optional/** * @var Laravel\Lumen\Routing\Router $router */ $router->get('/', function () use ($router) { return route('test'); // return redirect()->route('test'); }); $router->get...
cruz_Renner asked March 30th 20 at 00:50
3
answers

Why you need Lumen (please give the real case)?

Hello. Read.. read.. and did not understand - what is the meaning of Lumen? Please give a specific example where it is better to apply Lumen and not Laravel or PHP? And why? Thank you.
bettye asked March 17th 20 at 13:04
1
answer

How to make friends with the Lumen database?

Welcome! Established Lumen, connected to the database, and migration(migrations no, it only creates the migrations table) fails with the error: And server data cecal and changed version of the database, connect to a remote database, recreated the database, PHP changed(from 7.2.* on 7.2.0) - result zero. Please help. P. S I ...
odie71 asked March 12th 20 at 16:43
  • 1