Richard Jeffery
@WebDevRichard
Web Developer
Talvez você curta
If you're using Tailwind, don't sleep on child selectors. They clean up your styles and eliminate repetition. Vibe coding agents aren't smart enough to do this. (if you're using CSS, keep scrolling)
                                            Laravel 12.8.0 introduced `Rule::anyOf()`, allowing a field to be validated against multiple predefined rule sets, ensuring that at least one set fully passes. Massively simplifies potentially complex validation logic. In this example, we'll allow max 10MB for videos and 2MB…
                                            See, even Wes Bos doesn't know it all! He's still out here sharing what he's learning! You can do the same. And yes, people will likely tell you that they already knew that. That's ok.
🤯 How am I just finding out about display: contents; Suuuuper handy for CSS Flexbox + Grid where the children aren't direct descendants.
Needed to find out if there’s a way to dynamically change your database when working with Laravel Eloquent, lo and behold @fideloper has me covered! fideloper.com/laravel-multip…
If you're working on an app locally that requires several S3 disks, you can add what I call a "filesystem mock" feature, enabled via your app config. Benefits: - Don't need AWS credentials - Don't need an internet connection - Don't pollute the S3 buckets with test files
                                            Understanding OAuth OAuth is an open standard that allows users to grant limited access to their data on one site to other sites or applications without exposing their passwords. It has become the backbone of secure authorization across the web and mobile apps. The OAuth…
                                            Responsive HTML table with sticky columns and mobile view created using only CSS and HTML ✨ CodePen link below 👇
💡Quick Eloquent tip: If you have a many-to-many relationship with a pivot table and extra columns, you can use the updateExistingPivot to update the extra column's value. In this example, I need to update the status of a given subscriber:
                                            Now that everyone is playing around with @pestphp, let's not forget to perform architecture tests for clean code, my friends! 🧼
                                            Tired of manually formatting your Laravel code? Laravel Pint is the answer. Built on top of PHP-CS-Fixer, it ensures automatic, uniform styling so you can focus on the code. Here's a guide to set it up with PHPStorm and Docker (Laravel Sail), step by step.
Want to ensure code quality for your Laravel project? Set up Larastan! ✅ But, it can be tricky to get PHPStorm and Docker working together with Laravel Sail. Here's how to do it:
Insanely important tip: make sure to specify the PHP version you're using in production in your "composer.json" file. This way, composer will create the "composer.lock" file specifically for that version. Don't skip this step if you want everything to work smoothly.
                                            No more excuses not to test! 🚫 Thanks to this code, I'm testing media download from a temporary signed route using Laravel and Pest. 🙌🏼 The perfect combo! 🔥 #laraveltesting #pestphp
                                            🔗 Concurrent, Chunked, Multi-File Upload with Livewire (by @KTan360) fly.io/laravel-bytes/…
I know it's been mentioned a million times at this point, but this test is invaluable using @pestphp 2.
                                            This is a valid Dockerfile for a NodeJS application. It is also a pile of 💩! We can improve: - 🔒 Security - 🏎️ Build speed - 👁️ Clarity Follow along as we go from 💩 to 🥇! (code in alt text)
                                            The View Transitions API for Single-Page Apps (SPAs) is in Chrome 111 (the new stable)! 😍 Check out @jaffathecake's fantastic guide bit.ly/view-transitio… and this awesome demo from @charca
🔥 Laravel Tip: Just discovered the Laravel 𝘄𝗶𝘁𝗵𝗧𝗼𝗸𝗲𝗻 method to quickly add a bearer token to the request's Authorization header - making API calls so much simpler, faster, and more secure. #Laravel
                                            For the ones that are using Laravel with Vue and need to use i18n on both backend and frontend. I created this package, Laravel Vue i18n, and the setup is easy as this. Github: github.com/xico2k/laravel…
                                            🔥 Laravel Tip: Nested Eager Loading on Polymorphic Relationships. Sometimes you need to eager load different relationships depending on the type of model on a polymorphic relationship. This is super easy to do with the `morphWith` method.
                                            United States Tendências
- 1. #WWERaw 26.3K posts
 - 2. Cowboys 36.2K posts
 - 3. Koa Peat 2,268 posts
 - 4. Logan Paul 5,155 posts
 - 5. Bland 6,982 posts
 - 6. Cardinals 18K posts
 - 7. Monday Night Football 11.6K posts
 - 8. Cuomo 128K posts
 - 9. Marvin Harrison Jr 2,864 posts
 - 10. #RawOnNetflix 1,086 posts
 - 11. Arizona 32.8K posts
 - 12. Turpin N/A
 - 13. Jacoby Brissett 1,328 posts
 - 14. #OlandriaxCFDAAwards 9,941 posts
 - 15. Caleb Wilson N/A
 - 16. Josh Sweat 1,288 posts
 - 17. Ben Kindel N/A
 - 18. Kyler Murray 1,409 posts
 - 19. CM Punk 19.7K posts
 - 20. Nikki 73.4K posts
 
Something went wrong.
Something went wrong.