PHP throw Expression: ?? throw and ?: throw Explained
You fetch a value, check whether it is missing, and throw if it is. Every PHP codebase has...
Tag
7 articles
You fetch a value, check whether it is missing, and throw if it is. Every PHP codebase has...
Every request to your Laravel app travels through a stack of middleware: each one does some work, then...
"Duplicate this" buttons look easy: copy the row, save it, done. Then the first copy fails with a...
Here is a bug that passes every test until a user without a profile picture shows up. You...
Here is a small surprise in Laravel validation. The integer rule passes the string "10". For a form...
Some Laravel features are famous, and some sit in the docs for years while people write the same...
You add ?status=paid filtering to an endpoint, write Status::from($_GET['status']), and it works. Then somebody requests ?status=PAID or ?status=refunded...
We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.