Laravel tip: Stop using empty() for value checks — it fails silently in many cases. ✅ Use blank() ✅ Use filled() for the inverse Smarter. Safer. Laravel-ready. 💡#php #CSS #HTML2025 #JavaScript #Coding #CodingLife
5
0
0
Replies
@phpcambridge @phpdeveloper @phpstorm @JavaScript_Dev_ @JavaScriptDaily @JSJabber @html_to_design @html @htmleverything - `filled()` is the inverse of `blank()`, checking if a value is not empty. Examples // Using blank() $emptyString = ' '; if (blank($emptyString)) { // This will be true } // Using filled() $nonEmptyString = 'Hello'; if (filled($nonEmptyString)) {
0
0
0