Find object in array by property in JavaScript

Find first object ECMAScript 2015 The find() method returns the value of the first item in the array based on the result of the provided testing function....

Find Broken Links With Broken Link Checker

My favorite tool for checking broken links and 500 errors is the terminal utility broken-link-checker (BLC for short). It’s is an outstanding Node.js-powered utility for recursively checking for broken...

Blade Components with default values in properties

Super easy way to get default property values from a Laravel Blade Component. Took me a couple of minutes to figure this out: every prop is available as a variable...

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...