Discussion and News Abot the Laravel Framework

simonhamp,
@simonhamp@phpc.social avatar

Here's a little tool I built as my New Tab page

It lists all my projects based on the filesystem, giving me an overview of their state at a glance and quick access to various tools

It also lets me add custom details, search and more

It's built on Laravel Volt, which was really fun to use!

Will open source at some point

video/mp4

j3j5,
@j3j5@hachyderm.io avatar

@simonhamp looks really cool!! 👌

michael,
@michael@thms.uk avatar

Been playing around with Laravel Livewire a bit today, and it’s quite cool actually.

Really a powerful way to quickly get an app with interactivity going, if you can’t or don’t want to use a JS framework.

luceos,
@luceos@fosstodon.org avatar

@michael wait until you meet filamentphp :air_quote:

michael,
@michael@thms.uk avatar

@luceos yeah, that seems pretty cool. One step at a time though

tjventurini,
@tjventurini@mastodon.social avatar

Hi 👋 I'm looking to with people who are interest in

🌐 Web
🎨 Web Design
🧑‍💻
🧰
👀
🔵
🐧
🚀 Self Improvement
🌱 Growing on X

adamsdesk,
@adamsdesk@fosstodon.org avatar

@tjventurini Welcome to the fediverse!

Sjors1985,
@Sjors1985@phpc.social avatar

I've running into an issue and couldn't figure out what's going wrong. I'm trying to load some traits in my Laravel 10-factories, but every time I receive a message the trait is already declared and in use. Is anyone familiar with this issue and could help me to solve it?

Skye,
@Skye@chaos.social avatar

Any #laravel devs in DE looking for a job or freelance gig at the moment?

Must be fluent-ish in German and able to work in a codebase that heavily relies on Vue (though if you have experience with Svelte, react, or another modern reactive JS framework other than Vue that would be fine).

DM me if you’re interested :3 #getfedihired

tjventurini,
@tjventurini@mastodon.social avatar

Hi 👋 I'm looking to #connect with people who are interest in

🌐 Web Development
🎨 Web Design
🧑‍💻 #Coding
🧰 #Laravel
👀 #Vue
💼 #Freelancing

#letsconnect

doefom,
@doefom@mastodon.social avatar

Macros are one thing I enjoy using the most in . It's a way to extend the functionality of many built-in by providing custom callbacks for a specific key.

One production example I use macros for fairly often is what I call the "admin alert". Especially in smaller applications I want to get notified whenever an error or an event occurs the admin (mostly that's me) should know about.

Here's what this might look like.

emd,
@emd@cosocial.ca avatar

@doefom welcome, let me know if I can help you get going with them

doefom,
@doefom@mastodon.social avatar

@emd thanks for the offer! Do you know a GitHub repo where this is used and I can take a look at?

michael,
@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.

michael,
@michael@thms.uk avatar

@stefanzweifel yeah, not a big fan of auto discovery either.

It just makes events way too opaque, in my opinion.

emd,
@emd@cosocial.ca avatar

What am I missing folks, you can't have multiple listeners (in an array) in v11?

https://laracasts.com/discuss/channels/laravel/laravel-11-register-event-with-multiple-listeners

michael,
@michael@thms.uk avatar

@emd quite. I think autodiscovery for events isn’t great either to be honest.

Events already run the risk of stuff happening in opaque ways. This is gonna be even worse now.

michael,
@michael@thms.uk avatar

@emd I've just created this function in my AppServiceProvider. A bit silly that I now need to do this manually, imo, but not a big deal I suppose 🤷‍♂️

doefom,
@doefom@mastodon.social avatar

When developing applications I'm always a little afraid of sending emails to actual customers or placing real orders by accident. So I came up with a habit that works super well for me and maybe this will suit you as well.

In my /config/mail.php I add a 'developer' email address and ensure in my AppServiceProvider all emails are sent to this address when in non-production environments no matter what. Makes me build and test stuff way more confidently 😁

Is there a better approach?

doefom, (edited )
@doefom@mastodon.social avatar

@rolfdenhartog That's a great solution, thanks! For such cases I usually work with Laravel Herd. However, many times I know my clients work with outlook for example and then I ensure everything looks fine in outlook. But still, your approach in general feels cleaner than adding my code snippet to the service provider.

doefom,
@doefom@mastodon.social avatar

@mmk2410 that's great, thanks! :)

valorin,
@valorin@phpc.social avatar

It's incredibly common to find hardcoded domains used for identifying admins, however this also makes it trivial to escalate privileges to admin! 😈

https://securinglaravel.com/security-tip-privilege-escalation-through-domain-wildcards/
#Laravel

peach,
@peach@phpc.social avatar

Having a lot of fun with orchestra/testbench for #laravel . Took a little bit to get my head around it but getting there.

denniskoch,
@denniskoch@phpc.social avatar

If you are using #Laravel #Herd and experiencing issues with Xdebug not recognizing the correct domain: Go to herd.conf and swap fastcgi_param SERVER_NAME $server_name; with fastcgi_param SERVER_NAME $host;

derickr,
@derickr@phpc.social avatar

@denniskoch Xdebug doesn't care about this — your IDE might though!

denniskoch,
@denniskoch@phpc.social avatar

@derickr Yes. Might have worded that wrong and it's for PhpStorm. But in the end „Xdebug“ won't work“ (in this IDE)

simonhamp,
@simonhamp@phpc.social avatar

If anyone out there is looking to hire developers, I would love to help you find the perfect match

Send me a private message

markusstaab, (edited ) German
@markusstaab@phpc.social avatar

Today I collaborated with ondrey on a fix for #phpstan which improves a previous performance fix, which caused perf regressions in a #laravel edge-case.

The new fix allows a 2-3 seconds instead of 2-3 minutes analysis in all mentioned cases.

Reported issue was https://github.com/phpstan/phpstan/issues/10979

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