Ridewing retweeted
Naturkompaniet och Frontwalker väljer Semantivo för att hålla regelbunden koll på tillgängligheten. Väldigt roligt!
linkedin.com/posts/semantivo…
Ridewing retweeted
#Laravel tip:
Use try-catch Blocks for Detailed Error Handling
Proper error handling ensures your application fails gracefully and provides useful debugging information.
Wrap critical logic in try-catch blocks:
Ridewing retweeted
Laravel tip.
Did you know Laravel supports automatic database pruning, cleaning old data automatically?
Configure it in your Model and Scheduler. Then Laravel will automatically remove records older than your specified period.
Ridewing retweeted
Here are my favorite 22 Laravel packages📦
I would immediately DIE without them!
🧵Keep Reading
Ridewing retweeted
Hey Laravel Developers 👩💻
Have you heard about the fluent() helper function in Laravel?
If you’re working with long multidimensional arrays, objects, or a mix of both, you may sometimes feel unsure whether to use array or object syntax to access nested elements.
This is where the fluent() helper function shines! It lets us access elements using either object or array syntax—no more confusion.
Also, if an element doesn’t exist at the given index, the Fluent class returns null instead of throwing an Error.
The fluent() helper method also allows access to nested child elements using dot notation, which is extremely convenient.
#laravel #php
Ridewing retweeted
progressive scroll blurring with CSS ✨
– translate progressive blurred layers on scroll
– tighten blur with contrast and brightness 👇
.blur-stack {
animation: drop;
animation-timeline: --scroller;
animation-range: 0 var(--size);
height: var(--size);
}
Ridewing retweeted
Here are my favorite 16 Laravel packages📦
I would immediately DIE without them!
🧵Keep Reading
RT @jh3yy: Putting CSS Anchor Positioning to the test by throwing dropdown menus around 💪
[popover].dropdown {
top: anchor(bottom);
ri…
Ridewing retweeted
Scroll masking with CSS scroll animation as a progressive enhancement ⭐️
.scroller {
animation: mask-up;
animation-timeline: scroll(self);
animation-range: 0 1rem;
mask-composite: exclude;
}
@keyframes mask-up {
to { mask-size: 100% 120px, 100% 100%; }
}
Ridewing retweeted
💅
Higher order messages are pure love. 😍

ALT A code example demonstrates the use of Laravel's Collection method to extract a list of product names from an array of products. Before, a conventional foreach loop is used, while after, an elegant use of the map method is seen, which condenses the code into a single line, enhancing readability and elegance.
Ridewing retweeted
Hey Laravel Developers 👩💻
I have seen many developers not aware of, or using the caching feature of Laravel routes in the production environment.
If you are one of them, you are surely missing out on it 😢
So basically every time Laravel boots up it has to load the route files and bind these routes to the app instance. Every route needs to know its middleware, URI, controller, etc 📈
Since Laravel provides a great DX for route registration like grouping routes under a prefix, applying middleware globally, etc, mapping these components to every route is slightly costly ⏳
So what the route:cache command does, is that it generates a cached file under bootstrap/cache/routes-v7.php which contains all the routes along with all the components mapped which is super fast to load 🚀
#laravel #php
Ridewing retweeted
TIL 🤯! I had no idea you could use SplFileObject this way in #PHP.
Gentle reminder. Most of the time, you don't need fancy CSV library to parse a huge file
php.net/manual/en/splfileobj…
Ridewing retweeted
Auth::impersonate($user)
Gave it a shot to implement in the core
Lemme know your thoughts!
github.com/laravel/framework…
Ridewing retweeted
🔥Let’s talk about actions!
They are simple classes that take care of one user story or use case. The main benefits are:
- Very clean and readable code
- Practical SRP
- Reusable classes
- Actions can be easily nested into each other
🧵Keep Reading
Ridewing retweeted
Package developers, Laravel 11 ships next week! Meanwhile, do you have any questions regarding getting your package ready? Typically, you should only have to adjust your "composer.json" like so:
Ridewing retweeted
Anyone else excite for this. More than doubling MySQL connection setup speed in Laravel (timing from after TLS handshake is done)! github.com/laravel/framework…
Ridewing retweeted
“Breeze or Jetstream? Cashier or Spark? Which is better? What the hell is Scout btw?! Valet? Sail?”
The Laravel ecosystem is huge. It can be overwhelming. I'll try to explain my favorite tools.
🧵Keep Reading

























