Using the details/summary tags in Html
?? Something you probably didn't know HTML/CSS could do. SUPER useful! pic.twitter.com/qNTDTj1Hl1
— Caleb Porzio (@calebporzio) April 29, 2019
Read more [twitter.com]
?? Something you probably didn't know HTML/CSS could do. SUPER useful! pic.twitter.com/qNTDTj1Hl1
— Caleb Porzio (@calebporzio) April 29, 2019
Read more [twitter.com]
It's a minor thing but PHP's `isset` can accept multiple vars which will allow you to simplify your code. ? pic.twitter.com/GBgYEDSOya
— Eric L. Barnes (@ericlbarnes) April 4, 2019
Read more [twitter.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Freek’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
? Here's an undocumented hidden @laravelphp gem. Did you know you there's a shorter way to retrieve models in a chunked way? ?https://t.co/Vj74GAfAAr#laravel #php pic.twitter.com/qcVr5bCqGZ
— Freek Van der Herten ? (@freekmurze) March 25, 2019
Read more [twitter.com]
? Tip: sometimes I want to perform a quick validation check outside of the normal “Validator” flow and then respond with the same HTTP response format the validator would use. You can easily do this using “ValidationException::withMessages()”… #HiddenGem pic.twitter.com/1Du0e8yrSH
— Taylor Otwell ⚗️ (@taylorotwell) January 17, 2019
Read more [twitter.com]
TIL: $PIPESTATUS lets you access the exit code of a command used in a series of pipes in Bash pic.twitter.com/eRVrPQwnve
— Mattias Geniar (@mattiasgeniar) January 2, 2019
Read more [twitter.com]
Q: how many api calls do you need to do in #PHP to determine if the ☀️ is up?
— Freek Van der Herten (@freekmurze) November 14, 2018
A: 0 pic.twitter.com/glaZQZ4mQ9
Read more [twitter.com]
?⚾️ Just found out throw_unless returns the provided condition! This took an already super handy helper and made it ? pic.twitter.com/aaz3Oc7uye
— Caleb Porzio (@calebporzio) October 26, 2018
Read more [twitter.com]
PHP Hero Brent Roose clearly explains the difference between array_merge and the + operator.
PHP has several ways of combining two arrays into one. There's a subtle difference between two methods though, a difference worth knowing.
Read more [stitcher.io]
? The "pluck" method in Laravel's collections can take a string with dots to get a list of deeply nested values. You can also add a star to combine deeply nested lists ?https://t.co/qckA0dLw45 pic.twitter.com/3im6dGYoTi
— Joseph Silber (@joseph_silber) October 25, 2018
Read more [twitter.com]
? #LaravelTip You can override the validationData method on your custom FormRequest class if you need to modify the request data _before_ it's validated against. #laravel pic.twitter.com/GoVw93sSrD
— Glenn Kimble Jr (@GlennKimbleJr) September 8, 2018
Read more [twitter.com]
Did you know that using stream contexts, you can set headers when making HTTP requests with #php's file_get_contents() function? pic.twitter.com/bBoS5bksbt
— Liam Hammett (@LiamHammett) August 24, 2018
Read more [twitter.com]
? Quick Tip on @laravelphp's new email verification feature! Want to override/replace the notification with your custom notification? You can. Just use a callback in a service provider for instance. pic.twitter.com/odxfnBemnH
— Stefan Bauer (@stefanbauerme) September 6, 2018
Read more [twitter.com]
I thought everyone knew/did this but was told it was a pretty ?tip by @calebporzio.
— Jack McDade (@jackmcdade) 29 augustus 2018
So behold! Cleaner #vuejs binding events on <a> tags!#hottip pic.twitter.com/Q0Hd4VoY5M
Read more [twitter.com]
How about this? pic.twitter.com/JkKVBgfOtZ
— Dave Yoakum (@dawiyo) 1 August 2018
You can even write it shorter as User::latest()->value('name');
Read more [twitter.com]
?? Who knew, Laravel's string helper class can generate uuids - woot!
— Caleb Porzio (@calebporzio) July 5, 2018
If you care, here's my UUID model trait I use (the packages are too heavy handed for me) https://t.co/L8Il1sH5VA pic.twitter.com/K6OwkHKQBD
Read more [twitter.com]
?♂️⏲️ Just found all these handy class constants in Carbon - woohoo! ? pic.twitter.com/pL0HeKGVx4
— Caleb Porzio (@calebporzio) 29 juni 2018
Read more [twitter.com]
A GitHub repo containing easy to understand PHP snippets.
Read more [github.com]
? Laravel Quick Tip: Did you know that you can change the keys of a collection to a given value of the collection? ? Perfect for removing items of a collection by the model id. #laravel pic.twitter.com/kgsVnkFCBe
— Christoph Rumpel (@christophrumpel) 24 mei 2018
Read more [twitter.com]
If you want to quickly inspect a return value, you can use tap + logger without adding a variable! #laravel pic.twitter.com/TXA02BYlaC
— Sebastian De Deyne (@sebdedeyne) April 27, 2018
Read more [twitter.com]
? Quick Tip for @laravelphp: It's easy to show Horizon metrics somewhere else. pic.twitter.com/SIUfwfAsKX
— hans ? (@hanspagel) March 27, 2018
Read more [twitter.com]