Nuno Maduro on Nostr: It's a pretty cool Laravel Blade directive: `forelse`. It works exactly like ...
It's a pretty cool Laravel Blade directive: `forelse`. It works exactly like `foreach` but allows you to specify what gets displayed if the given iterable is empty. 💅🏻
Published at
2024-04-05 11:17:56Event JSON
{
"id": "3967aeadbb4e4537e647c3b8d338729acc7ed2d3d87fd6516782a9f299997674",
"pubkey": "e701351655361a7371d05878608ece8d562866d3f98ec056e1009a61a0c6b781",
"created_at": 1712315876,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/nunomaduro/statuses/112218333295389571",
"activitypub"
]
],
"content": "It's a pretty cool Laravel Blade directive: `forelse`. It works exactly like `foreach` but allows you to specify what gets displayed if the given iterable is empty. 💅🏻\n\nhttps://files.mastodon.social/media_attachments/files/112/218/332/717/994/538/original/bc9955b87cfb06db.jpg",
"sig": "441eb0e582b19c8b444aa8ed246da6501297813131c81330f23063a3aac68c169b0eb0c73106bdca5a93387acd77e5cb71579db9123f55aaad81e496cb4acaec"
}