Software Engineer | Software Consultant

Mauritius
Joined June 2017
Bruno Bernard ⚡ retweeted
Shipping: 'uc images' command to list images across your Uncloud cluster - see available platforms for multi-platform images - filter by machine (-m name) - filter by name (with or without tag) Pairs nicely with 'uc image push' for a smooth local → remote deploy workflow 👇
1
8
0
Bruno Bernard ⚡ retweeted
I did something interesting today! Instead of having to create separate controllers for our Inertia frontend and API endpoints, I used this little content negotiation helper to do all the transformation instead.
2
7
Bruno Bernard ⚡ retweeted
Did you know about Laravel's Timebox utility? You can timebox a closure to run for a fixed amount of time, even if an exception was thrown. Very useful for preventing timing attacks, where returning too early for certain scenarios could leak logical information.
4
15
93
Bruno Bernard ⚡ retweeted
I just reuploaded my Bond video to YouTube. Have I done the thumbnail thing correctly?
4
10
94
Bruno Bernard ⚡ retweeted
mega php tip: use #[SensitiveParameter] for sensitive parameters.. php will hide its value in stack traces, error messages, and logs.. this prevents accidental leaks of secrets in production.. absolute chef's kiss tip.. ✨
Bruno Bernard ⚡ retweeted
Inertia 2.2 is here and it ships with a new <InfiniteScroll> component! If you've ever built infinite scrolling by hand, you know what a timesaver this is. We worked hard sweating the details to make this super smooth and easy to implement Let's take a look! 👇
Bruno Bernard ⚡ retweeted
Finalizing islands in Livewire 4 Trying to figure out the best syntax for associating an action with an island What you think? or other ideas? This will probably only make sense if you saw my laracon talk
41
9
149
Bruno Bernard ⚡ retweeted
🚀I built Voltra, an npm package that lets you: ship custom Live Activities, Widgets, Dynamic Island + more with React. No Swift, Xcode, or extra JS runtime needed. ⚡ Hot reload ⛽ Server push ✻ AI coding agent-friendly 𝝠 @Expo + React Native ready Demo + must-read Thread⬇️
Bruno Bernard ⚡ retweeted
I usually don't find it very practical to keep a `permissions` database table as I've often seen. New permissions are typically a hard-coded thing that goes along with the code changes. What I do instead is to store them as JSON, cast to an enum collection on my Role model. 👇
9
8
95
Bruno Bernard ⚡ retweeted
When researching caching with Laravel and CloudFlare you'll find a post from Andy Hinkle. He creates a simple middleware to return the proper HTTP headers that tell Cloudflare to cache the response. But, it's not that easy…
3
13
1
139
Bruno Bernard ⚡ retweeted
Just shipped a major update to my PHP memoize package 😁 - LRU cache system with linked lists for smart eviction when size limits are exceeded - Namespace support for better organization - Hit tracking & stats Really enjoyed building this update
1
7
38
Bruno Bernard ⚡ retweeted
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)
Bruno Bernard ⚡ retweeted
We have just updated Elysia landing page Meet Zod, Valibot, ArkType, and Effect Schema
Bruno Bernard ⚡ retweeted
If you need to import a paginated API, you don’t need a workflow engine. In Laravel, we can solve this using recursive dispatching with Job Batches:
Bruno Bernard ⚡ retweeted
💡 SQL tip: Want to sum leaves per year without double-counting AM/PM splits? Instead of just SUM(value), first group by day! This way, each day counts only once, giving the correct total! ✅
1
8
Bruno Bernard ⚡ retweeted
When you have an app in production and you need to demo it to customers, you often need to create a demo account/environment populated with realistic fake data. This is really hard to keep up to date with changing features and environments @j0sh0nat0r and I have created a package to solve this problem: DirectoryTree/Anonymize Anonymize integrates with Eloquent models and seamlessly swaps out model attributes with consistent faker data using the model's ID as a seed This means, when you navigate around your app, the fake data stays the same, but the underlying data doesn't This is great for sales so they can enable a "Demo Mode" on your application and automatically anonymize all model data in the application, then show it to new customers without exposing any sensitive user information It eliminates the need to seed and store fake data in your database or have separate environments, and puts the source directly into the models themselves, making it super easy to maintain Link below, and let me know what you think!
Bruno Bernard ⚡ retweeted
DirectoryTree/Anonymize now supports anonymizing JSON resources
3
6
68
Bruno Bernard ⚡ retweeted
Laravel Tip 💡: Boot Traits with Attributes Bootable traits are great, but their naming convention can be painful. Since Laravel v12.22, you can fully customize method names using PHP attributes 🚀 #laravel
1
8
1
59
Bruno Bernard ⚡ retweeted
This week's Laravel release has a cool new "withHeartbeat" method on lazy collections. The method invokes a callback at regular time intervals while the collection is being enumerated. Example in screenshot. 📸 Contributed by @joseph_silber. 🫡
6
22
5
333
Bruno Bernard ⚡ retweeted
We've added Wayfinder to our Vue and React starter kits. 💅 Beautiful, type-safe bridge between your front end and back end.