@stefanzweifel@phpc.social
@stefanzweifel@phpc.social avatar

stefanzweifel

@stefanzweifel@phpc.social

Web Developer (#laravel #php / #tailwindCSS) • Maker of many open source things • Minimalist • Hiking in the alps • 🇨🇭🏳️‍🌈 he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

michael, to Laravel
@michael@thms.uk avatar

So, it really annoyed me that in Laravel 11 you cannot have multiple listeners for the same event in an array like you could in Laravel 10.

It's not like it's a big deal, as it's simple enough to implement, but just seems like a step backwards.

What do you think?

https://blog.thms.uk/2024/05/event-listeners-laravel-11?utm_source=mastodon

#Laravel #PHP

stefanzweifel,
@stefanzweifel@phpc.social avatar

@michael Will replicate this EventServiceProvider in one of our apps, once we start migrating it to Laravel 11.

Not a big fan of the auto-discovery or the new way of registering events.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@michael Just this morning upgraded a smaller app to Laravel 11 using Shift and the Microsoft socialite integration was broken, as the event/listener could not be auto-discovered.

Was thankful for having a test to catch that. 🤓

kaiserkiwi, (edited ) to apple
@kaiserkiwi@corteximplant.com avatar

I'm honestly a bit nervous about this years .

has shown with the presentation of the new iPad Pro that they now also use the word (They avoided it pretty much completely until then).

So will Apple try to make it more for their customers or will they just be as shitty as Google and Microsoft about all this stuff?

stefanzweifel,
@stefanzweifel@phpc.social avatar

@kaiserkiwi I'm also so curious what they will do.

They are in talks with OpenAI, but nobody knows what that means in detail.
https://www.macrumors.com/2024/05/13/apple-finalizing-deal-openai-chatgpt-ios-18/

But not using on-device ML doesn't fit the Apple brand. Having dedicated data-centres just for the AI stuff would also go against there net-zero goal. Great if the building is powered by renewables, but I would rather use the resources for something different.

kaiserkiwi, to random
@kaiserkiwi@corteximplant.com avatar

Definitely doesn't sound problematic or scary.

What the fuck Microsoft? 🤪
https://mastodon.social/@arstechnica/112475611939997391

stefanzweifel,
@stefanzweifel@phpc.social avatar

@kaiserkiwi @arstechnica Looks like Rewind/Limitless got sherlocked.
https://www.rewind.ai/

(I don't like both products either.)

stefanzweifel, to 11ty
@stefanzweifel@phpc.social avatar

Now that I've switched my blog to use , it makes much more fun to update it again.

Finally updated my /uses page. Updated some screenshots and apps. (The biggest change is that I've replaced Feedbin with Reeder.app)

https://stefanzweifel.dev/uses/#ios

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis Plexamp is awesome.
I’ve downloaded some ambient music from World of Warcraft and mostly listen to this while coding.
Probably 80% of the time, Plexamp is running.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Just released a new minor version of my “changelog-updater” GitHub Action.
https://github.com/stefanzweifel/changelog-updater-action

If the heading of a previous release in the changelog has a link to a compare view, the Action will use that URL and add a link to the updated compare view to the new release notes.

It's hard to explain this with words. The attached screenshot gives you a good example.

This previously only worked, if the changelog had a "Unreleased" heading with a link in it.

stefanzweifel,
@stefanzweifel@phpc.social avatar

Also kinda embarrassed by the state of the underlying CLI php code base.

It's currently a mess of "Action"-classes calling other "Action"-classes and passing the CLI options all the way down.

Have to find a good way to define all the “scenarios" and then isolate them into separate classes.
eg. "release notes passed, unreleased heading found, markdown file is empty: place notes at the end of the document”

stefanzweifel,
@stefanzweifel@phpc.social avatar

@bobmagicii Yeah, I definitely had the same feeling of "Wait, this doesn't make sense. This is a CLI not a web project."

Want to code-dive the git-CLI and learn how they deal with that. (Even if git itself is not a greatly designed CLI)

j3j5, to php
@j3j5@hachyderm.io avatar

Does anybody on the fedi Laravel community knows Aaron Francis? It's really sad that his (awesome) fast-paginate package seems abandoned like this, maybe just a statement acknowledging he can't/doesn't want to maintain it anymore can make the community fork it to keep it maintained. This L11 support PR has been opened and unanswered for 2 months already.

https://github.com/hammerstonedev/fast-paginate/pull/58

stefanzweifel,
@stefanzweifel@phpc.social avatar

@j3j5 Aaron isn‘t the fastest with merging those PRs. On a recent episode of his podcast, he acknowledged that. (Recently lost his job and has 4 small kids)

Maybe a friendly email that states that the PR can be merged as is and a new version can be tagged (because you tested that everything works for L11) helps.

I had to DM him a couple of times for the L10 release last year to upgrade a certain package.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@j3j5 I feel you. Had the same inner monologue when I had to nudge him last time.

He helped me bring sidecar-browsershot to a v1; but that is all the interaction I had with him.

Maybe a friendly comment on that PR can move a new release forward faster.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis I've deployed it already. 😄
(Also switched hosting from Vercel to Cloudflare pages.)

Gonna write a couple of blog posts soonish. Next up is also a “microblog" for some smaller/shorter posts.

18+ stefanzweifel, to Eurovision
@stefanzweifel@phpc.social avatar

Swiss broadcasters right now: “Oh fuck. Where do we even host the next Eurovision?”

stefanzweifel,
@stefanzweifel@phpc.social avatar

@phphil Of course Olten is on that list. 😅

freekmurze, to random
@freekmurze@phpc.social avatar

🔗 Rethinking deploys at Flare
https://flareapp.io/blog/rethinking-deploys-at-flare

stefanzweifel,
@stefanzweifel@phpc.social avatar

@freekmurze Great to see that others in the community are switching to deployer. Have to give Airdrop a try.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Happy Eurovision week to all that celebrate. 🪩

stefanzweifel,
@stefanzweifel@phpc.social avatar

@adfichter I think Nemo has a high chance of winning.
Just listened to the super-cut of all songs this year and their song really stands out.

robb, to random
@robb@social.lol avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@robb Super interested if you will stick to Raycast.

I have been using Alfred for more than 10 years now. I like the modern look of Raycast, but the last time I tried it, it still felt slow compared to Alfred.
Maybe I also just have to switch the shortcuts and force to use it more.

(Also: Great picture in the blog post)

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis Interesting! I also think the AI stuff would just be a gimmick for me and something I will barely use.
Gonna give it a test run next week. :)

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Love it.
iCloud Drive decided to download all my old photo archives and old Windows XP games iso-files until 100MB of disk space was left.

No delete all node_modules folders and local TimeMachine snapshots. And after three restarts iCloud stopped downloading any more files and gave me back 15GB of data. 🤷

stefanzweifel,
@stefanzweifel@phpc.social avatar

Haha. Microsoft Teams uses 1.8 GB of disk space?!

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

#php #phpstan

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis yeah, max is basically impossible to fulfill in Laravel apps. In packages it’s manageable. A couple of doc blocks are usually enough.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@thgs @regis The problem is Laravel's magic.
Tools like Larastan or the laravel-ide-helper can help here.

The core problem is that for example in this User model, there are no $name or $email properties, but one can use $user->name = ‘Foo’;
https://github.com/laravel/laravel/blob/11.x/app/Models/User.php

As mentioned, I’m a novice when it comes to phpstan and currently don't see the need to go to level 9 in my projects.
My app code these days are often strictly typed PHP classes "outside" of Laravel anyway.

MoritzGiessmann, to random
@MoritzGiessmann@mastodon.social avatar

Almost three months after publishing, Google still hasn’t crawled all of my blog articles from January. All other big search engines have. I really don’t get it.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@MoritzGiessmann When I moved my domain from .io to .dev it took Google 3-4 months to properly index most of the blog posts. (I think 2-3 are still not indexed)

What helped (?) me logging in to the search-console and manually submit/fix each URL.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • lostlight
  • All magazines