K2_Hero
263
6
Laravel

Named route with multiple parameters

Posted 10 months ago by K2_Hero

Hi guys, I m trying to use route() generator with multiple parameters but server return request timeout 500.

route('web.articles.comment.reply.store', ['slug' => $post->slug, 'comment_id' =>  $comment->id])

Nginx error log:

*10052 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 266240 bytes) in /var/www/example.bg/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 194

PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 36864 bytes) in /var/www/example.bg/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php on line 190

PHP message: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 53248 bytes) in Unknown on line 0" while reading response header from upstream, client: 95.169.xxx.xxx, server: example.bg, request: "GET /omsi-2-avtobusadzhiya-denasdasd-1-novoto-nachalo HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "example.bg"

I read documentation maybe 6/7 times, search in SO and another website but without success. This error is like cancer...

Please sign in or create an account to participate in this conversation.