Sandro Gehri's Avatar

Sandro Gehri

@sandro.gehri.dev

Father, Husband, Laravel enthusiast and OpenSource Developer. Creator of OpenAI for PHP and TailwindMerge for Laravel.

425
Followers
239
Following
48
Posts
03.07.2023
Joined
Posts Following

Latest posts by Sandro Gehri @sandro.gehri.dev

Looking forward to talk about my experiences upgrading a real-world app to @laravel.com Livewire v4.

Come along and hear:
πŸ‘ What went well?
🧐 Where I did struggle?
πŸš€ How the app improved?

See you in #Basel

19.01.2026 20:45 πŸ‘ 5 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

Upgrade to the latest @filamentphp.com release (v4.0.5) to get an extra boost on your test suite.

In my case, the test suite went down from ~30s to ~24s πŸš€

01.09.2025 13:49 πŸ‘ 7 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

Next speaker reveal! πŸŽ‰ @sandro.gehri.dev πŸ‡¨πŸ‡­, full-stack developer, open-source contributor, and creator of OpenAI for PHP & Laravel, will take the stage at Laravel Live Denmark!

09.02.2025 12:50 πŸ‘ 8 πŸ” 3 πŸ’¬ 1 πŸ“Œ 0
Preview
Let’s build K.I.T.T. with JavaScript && Move from the Wild into the Cloud(s), Tue, Feb 25, 2025, 6:30 PM | Meetup Get ready for an unforgettable Laravel meetup at HUB space in NeuchΓ’tel ! Join us for an amazing evening of learning, dedicated to programming an onboard AI in JavaScript

Hi Artisans !

We are pleased to invite you to our next Laravel Meetup, which will take place on Tuesday, February 25th, at 18:30 (talks start at 19:00) in NeuchΓ’tel @ Le Hub

RSVP : meetup.com/laravel-swit...

#php #artisans #switzerland #KnightRider #livewire

08.02.2025 18:37 πŸ‘ 5 πŸ” 2 πŸ’¬ 1 πŸ“Œ 1
Meetup in ZΓΌrich - November 2024
Meetup in ZΓΌrich - November 2024 YouTube video by Laravel Switzerland Meetup

Hi Artisans! Here are some great moments recorded during our last meetup of the year in Zurich, November 2024. See you in January 2025 for new adventures!

www.youtube.com/watch?v=oXD6...

08.12.2024 16:56 πŸ‘ 6 πŸ” 2 πŸ’¬ 0 πŸ“Œ 1

Probably most developers havenβ€˜t realized the behaviour because HTML ignores leading and trailing spaces in most cases.

The reason I realized it was a JS library not able to render strings with a leading whitespace. πŸ˜…

07.12.2024 06:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
livewire/src/Mechanisms/HandleRequests/HandleRequests.php at main Β· livewire/livewire A full-stack framework for Laravel that takes the pain out of building dynamic UIs. - livewire/livewire

Livewire disables the TrimStrings middleware for all its requests: github.com/livewire/liv...

Maybe something for Filament v4 to trim all text input values by default?
Probably not possible in v3 as it is a breaking change under special conditions.

06.12.2024 15:12 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Maybe this is a problem in my application.

I will give it a try in a fresh installation and let you know.

06.12.2024 14:59 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Right, but I hesistated to have this right from the beginning on all my text inputs becauce of possible side effects.

Maybe this is something Filament could support out of the box?

06.12.2024 14:39 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Sending logs to Flare - Documentation The best error tracker for Laravel

Maybe I should have mentioned, that I send log entries with a level of "error" of higher to Flare: πŸ˜…

flareapp.io/docs/integra...

06.12.2024 08:09 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Bluesky Network Analyzer Find accounts that you don't follow (yet) but are followed by lots of accounts that you do follow.

Love this little tool by @theo.io to grow my network here πŸ¦‹

bsky-follow-finder.theo.io

04.12.2024 23:18 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

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

#Laravel #I18N

04.12.2024 20:19 πŸ‘ 33 πŸ” 5 πŸ’¬ 3 πŸ“Œ 0

I always unguard(). πŸ’―

In my opinion fillables only work in really simple apps. As soon as you have users with different permissions, fillable isnβ€˜t the right choice anymore.

And to not get confused when switching projects I always unguard the models and use proper validation everywhere.

04.12.2024 19:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

How are you getting rid of leading or trailing spaces on @filamentphp.com inputs?

Currently, we use a macro on the TextInput which trims the string when the state dehydrates.
Is there someone with a better / different approach?

04.12.2024 15:13 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

For all the newcomers, I’ve created a starter pack of just a few of the awesome voices from the #PHP community to get you started here at Bluesky.

Don’t stop with these folks, though. There are so many other amazing PHP devs to follow! Check out who these folks follow for more.

go.bsky.app/SkXz8C8

04.12.2024 06:21 πŸ‘ 42 πŸ” 18 πŸ’¬ 4 πŸ“Œ 0

πŸ’―
totally agree πŸ‘

03.12.2024 06:48 πŸ‘ 3 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

Done.

30.11.2024 10:02 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0

The video of the talk will be available on Youtube.

26.11.2024 09:12 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
Laravel Worldwide Meetup Join the official Laravel meetup in the cloud. Learn from familiar faces and new speakers while chatting with fellow Laravel devs.

🚨 Tomorrow: Laravel Worldwide Meetup

Tune in when I talk about improving your test suite with mutation testing in @pestphp.bsky.social

And @rissabubbles.bsky.social tells you everything about "Crafting Compelling Laracon Talks"

πŸ“† 26. November
⏰ 17:00 UTC

meetup.laravel.com

25.11.2024 17:32 πŸ‘ 24 πŸ” 8 πŸ’¬ 1 πŸ“Œ 1

We've assembled a starter pack of just a few of the awesome voices from the #PHP community here on Bluesky. But don't stop here! Take a look at who these folks follow for more great following ideas. go.bsky.app/SkXz8C8

22.11.2024 03:37 πŸ‘ 93 πŸ” 47 πŸ’¬ 6 πŸ“Œ 8
Preview
Laravel Worldwide Meetup Join the official Laravel meetup in the cloud. Learn from familiar faces and new speakers while chatting with fellow Laravel devs.

Looking forward to talk about mutation testing in @pestphp.bsky.social next Tuesday at the Laravel Worldwide Meetup.

meetup.laravel.com

22.11.2024 12:26 πŸ‘ 9 πŸ” 1 πŸ’¬ 0 πŸ“Œ 1

And I was wondering why my follower count is πŸš€

Thank you @phpc.social

22.11.2024 12:22 πŸ‘ 4 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

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

19.11.2024 16:19 πŸ‘ 5 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0
Post image

Thanks to the @spatie.be newsletter href.email I just found out, that you can use a custom domain for your @bsky.app handle.

I think @sandro.gehri.dev just looks very nice πŸ’…

07.11.2024 17:29 πŸ‘ 9 πŸ” 2 πŸ’¬ 0 πŸ“Œ 0
Mutation Testing for Pest PHP with Sandro Gehri
Mutation Testing for Pest PHP with Sandro Gehri YouTube video by Laravel Switzerland Meetup

πŸ’‘ Wanβ€˜t to learn more about the upcoming mutation testing capabilities in @pestphp?

Checkout my talk from the latest Laravel Switzerland meetup.

youtu.be/78iI0yS87oA

02.09.2024 09:26 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
GitHub - pestphp/pest-plugin-mutate: Mutation Testing for Pest PHP Mutation Testing for Pest PHP. Contribute to pestphp/pest-plugin-mutate development by creating an account on GitHub.

πŸ§™πŸΌ Still very pumped about my talk at Laravel Live UK last week, talking about the upcoming Mutation Testing capability in Pest PHP.

Thanks again to the conference organizers, for doing an amazing job.

Checkout the plugin beta version: github.com/pestphp/pest...

24.06.2024 06:04 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

πŸ“£ TailwindMerge for Laravel Announcement

The latest version supports all the new features in TailwindCSS 3.4 πŸŽ‰

- Dynamic viewport units
- size-*
...

github.com/gehrisandro/...

10.01.2024 21:22 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

The newest feature I've added to the upcoming Pest Mutation Testing plugin, is already one of my favourites: "--retry" 😍

It runs the mutations previously survived first, to have a really fast feedback loop. πŸš€

It behaves like `--retry` in Pest.

#php #mutationtesting

05.12.2023 05:40 πŸ‘ 5 πŸ” 3 πŸ’¬ 0 πŸ“Œ 0

Considering releasing version v1.0.0 of OpenAI client for PHP. Is there any last request you wish to see implemented before that? github.com/openai-php/c...

04.12.2023 13:31 πŸ‘ 4 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0
Post image

A Larsvel Pulse card that records all OpenAI requests. πŸ§ͺ

Should we add this to OpenAI for Laravel?
And what metrics would you like to see?

01.12.2023 23:37 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0