Profile avatar
hasnayeen.com
"Everything has a trade-off" Building products with Laravel, Livewire, Alpine, Tailwind, Filament
30 posts 159 followers 289 following
Prolific Poster

Route Definition Enhancements in Laravel with Enum Integration

Some thoughts about common stages of authentication & authorization (across many pieces of tech) and how each are expressed in the Laravel ecosystem: arter.dev/blog/a-guide...

TIL this feature existed. Makes it easy to add a "sudo mode" to your app. blog.laravel.com/password-con...

Sometimes a single rate-limit just won't do the job. Luckily, Laravel lets us define multiple, so we can mix-and-match. https://securinglaravel.com/security-tip-multiple-rate-limits/ (Protip: Don't blanket rate limit a route without monitoring, or all your users might get locked out! 😲)

Excited for the launch of Geocodio's new technical blog, Code and Coordinates! @codemonkey.io kicked it off with a post on how we keep 300M+ addresses up-to-date. (Spoiler alert: it involves Laravel, SQLite, and crabs.) www.geocod.io/code-and-coo...

I love Eloquent. It's such a productive part of Laravel. But what if Eloquent doesn't quite do what you want? Or the default approach doesn't perform well enough for your needs? masteringlaravel.io/daily/2024-0...

The definitive Guide to Webhooks in Laravel

Laravel Tip ⚑️ Need to update a lot of models based on some complex conditions? Combine these Eloquent methods for a 10-100X speed bump: β€’ select() β†’ retrieve only IDs β€’ chunkById() β†’ use batching to break large data β€’ toQuery() β†’ perform update on the models

Let's explore 5 different "Authentication Fails" that I've come across, as a reminder for why it's so important to get authentication right. https://securinglaravel.com/in-depth-five-ways-to-fail-at-authentication/ #Laravel

Laravel Filament User dropdown Menu customization youtu.be/Thl2rw6XePg

"Laravel Joins Explained: Clear Guide with Practical Examples" nabilhassen.com/laravel-join... Doing #MySQL for two decades and I still read up on joins at times. This link is #Laravel specific, so bookmarkable. #PHP

Hey Laravel devs, here's a gem for you! πŸ’Ž Track scheduled task outputs easily with sendOutputTo and appendOutputTo! Perfect for logging and debugging your scheduled commands. #Laravel

As I was using Cursor/VSCode, one thing I really missed from PHPStorm was a Laravel Idea feature that lets you create Laravel files from the context menu. So I made one for VSCode. marketplace.visualstudio.com/items?itemNa... Sharing this hoping that it would help someone! #laravel #cursor

Unlock the power of Laravel's takeWhile! πŸ” Discover how to extract sequential data efficiently and elevate your coding skills with this handy feature.

Any time I can eliminate a docblock in my code, I go for it. Here's another relatively new addition to Laravel that let me clean up a some docblocks in my form requests. masteringlaravel.io/daily/2024-1...

Boost your code clarity with a new feature in Laravel 11! πŸš€ Learn how the new RouteParameter attribute can clean up your form requests. Joel explains it all!

Got some free time coming up in the new year and looking for a few Laravel projects to work on. I’ve built apps from scratch with Laravel, handling everything from front-end to back-end to deployment. If you need an extra hand or someone to help move things forward, feel free to reach out!

If you work in #Laravel - a Blade component to quickly login to your local environment. #PHP github.com/spatie/larav...

Ever wondered why Laravel devs love the Service Container? πŸ€” In this video, I show you why it's the key to: β€’ Better dependency management β€’ Easier testing β€’ More maintainable code Practical examples that'll transform how you you think about the container πŸ™Œ youtu.be/8HBQ2-_39VE

Boost your Laravel app with Blade Fragments! πŸš€ These let you update just parts of the page, perfect with htmx or Turbo. Keep it dynamic and sleek!

Get fluent with Laravel's HTTP client responses! πŸš€ Laravel 11.35 introduces easy ways to turn data into Fluent instances. Transform responses smoothly and access data better!

In an entirely unexpected turn of events, I published a blog post. That's two entire blog posts this year. I can't possibly maintain such a pace, so you might as well make the most of it. www.stephenlewis.me/blog/eloquen... #laravel

Combine your data elegantly! πŸš€ Meet the Union Paginator for Laravel. It merges multiple Eloquent models into one query, making pagination a breeze. Enjoy!

Let me tell you a story about a time when a single missing character allowed me to escalate my privileges and gain admin access, despite all the protections designed to stop me! 😈 https://securinglaravel.com/security-tip-please-stop-hardcoding-admin-domains/ #Laravel

πŸ’‘ CSS Tip! Do you want to detect the overflow of an element? Does it have a scrollbar or not? It's possible with only CSS (No JavaScript!) You can even style any element on the page using this information 🀩 Code & demo πŸ‘‰ css-tip.com/overflow-det... ⚠️ Chrome only for now ⚠️ #CSS

Any laravel peeps self hosting typesense in production? Looking for tips

This week, Gabriel and I worked together on a tool for Tailwind CSS users. The tool lets you easily create grids for your Tailwind CSS projects, perfect for generating bento-style grids! It supports Tailwind CSS v3/v4 Try it! oxbowui.com/free-tools/t....

The #Laravel Container is a work of art ✨ Need to inject dependencies into a method call AND have the flexibility to override it with a custom callback The Container's got you covered! Here's an example that shows both features ⬇️

Did you know a one-line change in your Laravel test setup method can give your test suite the ability to predict the future and show you code that will break during a future upgrade? Thanks to @martinbean.dev for inspiring today's tip. masteringlaravel.io/daily/2024-1...

One of the biggest problems with UI development is about to be solved! Customizable <select> brings allows us to create totally custom dropdowns with HTML and CSS. Accessible, gracefully degrades and requires no JS! 4.5 min video explainer + demo β†’ www.youtube.com/watch?v=MA9W...

🚨 Laravel developers, you may or may not have heard of the shouldBeStrict() method of Laravel's Model. It’s a game-changer for enforcing strict rules that protect your app from unexpected bugs. πŸ”’ Want to learn how it can level up your development? πŸ€” Keep reading! 🧡

your #Laravel app has performance issues? check out our laravel-xhprof package: github.com/laracraft-te...

#CSS scroll-state() container queries: the "stuck" query ```css @container scroll-state(stuck: top) { box-shadow: var(--shadow-5); border-radius: var(--radius-3); margin: var(--size-5); } ``` article coming soon! (currently in Canary experiments)

Hey Laravel devs, here's a gem for you! πŸ’Ž Handle exceptions elegantly with the rescue function! Execute risky code with clean fallbacks and optional reporting. Perfect for graceful error handling! #Laravel

πŸ’‘ Laravel tip: Get notified when you have a missing translation in your Laravel app. #Laravel #I18N

Yesterday evening we released two new open source packages! #Laravel Mails and #Filament Mails. The packages let you keep track and view all sent emails in Laravel and get notified when something is wrong. Link to the Laravel package: github.com/vormkracht10...

Master API rate limits with ease using Laravel's job throttling! πŸš€ Learn how to prevent API flooding and keep your services running smoothly by using Redis::throttle in your Laravel projects.

very disturbing but not surprised, this will get lost in the AI hype www.youtube.com/watch?v=qZS5...

Need dynamic mailer setup in Laravel? πŸš€ Check out how Laravel's Mail::build method lets you create mailers on the fly. Perfect for multi-tenant apps and custom email configs. Say goodbye to static email settings and hello to flexibility! https://laravel-news.com/dynamic-mailer-configuration-in-l…

So many amazing things coming to CSS these days, but I have a feeling anchor positioning is going to be one that gains traction pretty quickly because it solves such a big pain point and is pretty easy to use. https://buff.ly/3AStTxE

It might seem like something that should happen automatically, but there are a few things to know if you want one GitHub action to trigger another action automatically. masteringlaravel.io/daily/2024-1...

CTA to Nav πŸ—ΊοΈ taking the CSS container query for stuck position: sticky elements for a spin πŸ”₯ nav { container-type: scroll-state; } @​container scroll-state(stuck: top) { .nav__content { --expand: 1; } } trick here is to transition grid-template-columns with the custom property value to morph

Catch all the talks from our amazing speakers on our YouTube channel! πŸŽ₯ Watch now: [youtube.com/@laravel-switzerland-meetup](www.youtube.com/@laravel-swi...).

I was a bit frustrated with the state of icon components in #laravel, so I built this little package called Unicon. It allows me to use any of the 200k+ icons available on #iconify in my Blade templates. The project is fresh out of the oven; give feedback, please πŸ¦„ unicon.rocks/introduction