Tag: Laravel

Laravel Relation “Attempt to read property on null”

It usually means that the related record is NULL or soft-deleted. There are multiple ways to gracefully handle such a situation, without showing the error to the user. A practical example would be a list of Posts with belongs To relation to Categories. Migration file for Posts:

Continue reading

postfix/submission/smtpd certificate expired alert number 45

I tried to configure Laravel mail client with secure connection via TLS to my email server but in email client I got: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. At the same time on my email server in /var/log/maillog I observed the following: …

Continue reading