Anonymous Blade Components in Laravel Packages
During package development you may want to register a anonymous Blade component, instead of going the long way by creating a class you can do this:
How to string to boolean in PHP
Sometimes, when working with JSON data in PHP, you may encounter a situation where you need to cast a string value to a boolean value. For example, you may have...
Wildcard subdomains on Cloudflare with PHP and API-tokens
I have been using Cloudflare’s excellent DNS-service for managing my domains. Free SSL-certificates and anti-DDoS services are added benefits. However, proxied wildcard subdomains are not available except on the enterprise...
Laravel Echo and broadcasting from a package
While implementing Laravel Echo for a package I found an small problem. By default Laravel Echo looks in App\Events for events, and therefor I could not listen to the...
ImagickException – cache resources exhausted
It says i all. Increase the memory limits for Imagick and you should be fine. However, it does not help to just add more memory in php.ini, instead you...