Skip to content

log to stdout / stderr with Laravel 5.6 and php-fpm

I want my laravel applications to run as well mannered 12 factor apps. Right now I’m struggling to get their to logs to and from stdout (stderr is also fine by me) under php-fpm. The php version is 7….

Laravel Queue How to get data in job handle method

I have created a sequence of messsages to be sent in text messages through twilio. I have created a controller to put the messages in a queue with the data received in the post request. Here is my controller to make queue: And in handle the job , in the handle function } I am not able to figure out

Variable variables in classes using PHP 7

Actually I’m migrating a bigger project from PHP 5.3.3 to PHP 7.1.13. In older versions of PHP it was possible to code following access to variable variables: This shows: Using the same code in PHP 7 it shows: In PHP 7 I figured out, that I have to use this way to get the same result: I found in the

Composer psr-4 autoload issue

I have problem with autoloading with composer when i use psr-4 autoloading it doesn’t work and give me error. I tried: $ composer dump-autoload and a lot of other thing but it doesn’t work …