jclermont, to php
@jclermont@phpc.social avatar

Yes, I'm a bit of a PHPStorm fan boy. Here's another handy use for the Local History feature. #php #laravel https://masteringlaravel.io/daily/2024-05-02-another-helpful-use-for-local-history

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
michael, to php
@michael@thms.uk avatar

Pretty cool stuff. Though I'm also wondering if leaving the connection open and reusing it repeatedly might have downsides too, especially if I have need to connect to many different hosts?

https://www.youtube.com/watch?v=BWAocgJVCbw

3f, to php German
@3f@chaos.social avatar

#php #laravel #testbench

Is there a way to "update composer" during a test run using cli in the testbench composer.json?

heiglandreas,
@heiglandreas@phpc.social avatar

@3f You mean apart from composer self-update?

tvbeek,
@tvbeek@phpc.social avatar

@3f can you explain your use case? (I'm very interested)

If possible it will be very tricky because you update the code that you are testing and possible the running code.

jclermont, to php
@jclermont@phpc.social avatar

Fresh off php tek last week, I'm reminded that conferences are so much more than just the talks. #php #laravel https://masteringlaravel.io/daily/2024-05-01-conferences-are-more-than-just-talks

dunglas, to Laravel
@dunglas@mastodon.social avatar

Yesterday I learned that it's possible to change the path where #Laravel apps store uploaded files, caches, logs, etc thanks to the LARAVEL_STORAGE_PATH env var. This is super convenient when distributing apps as standalone binaries using FrankenPHP.

https://github.com/laravel/framework/pull/51243

cooptilleuls, (edited ) to Laravel French
@cooptilleuls@mastodon.online avatar

Nous avons le plaisir d'annoncer la sortie d'@ApiPlatform 3.3 ! Découvrez avec @soyuka, le release manager du framework, ce que comporte cette nouvelle version :

🖍️ De nouvelles options ajoutées aux classes de métadonnées
✨ Une ouverture sur #Laravel
🔩 Et plein de nouveautés
https://les-tilleuls.coop/blog/sortie-de-api-platform-3-3

Feedbacks grandement appréciés !
https://les-tilleuls.coop/blog/sortie-de-api-platform-3-3

sirber, to Laravel
@sirber@fosstodon.org avatar

#Laravel / Eloquent looks way easier than #nestjs / typeorm and #go / #gin / #gorm 😅

#php #webdev

Crell,
@Crell@phpc.social avatar

@sirber Pretty good overall, but does have a bit higher curve. If Laravel cribs from Ruby on Rails, Symfony is inspired by Java Spring Boot. When I want a major framework I usually go Symfony.

Crell,
@Crell@phpc.social avatar

@sirber Oh, and on the faux decorators, those are Annotations. Hack to do the in docsblocks.

PHP now has native attributes and basically everyone who matters has switched over to them. Much nicer, natively supported.

pieceofthepie, to Laravel
@pieceofthepie@n8e.dev avatar

#ProLifeTip. Put more effort into periodically reinforcing the learning that got you to this point in your career, because at some point you might spend a weekend implementing something from scratch and realising you've literally forgotten it all.

The wheel aren't rusty, they've fallen off.

How does one work with #Laravel?
What is a Dockerfile? WTF is Vite?

#SeniorMyArse #SoftwareDeveloper #Dev #Docker #Linux #PHP

SamStrong,
@SamStrong@hachyderm.io avatar

@pieceofthepie You can rebuild that knowledge pretty quick though. Your understanding of the underlying structures is still there.

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@SamStrong oh yeah, it took a weekend not months/years.

But still, quite humbling to realise you're essentially back to the drawing board.

pieceofthepie, to Laravel
@pieceofthepie@n8e.dev avatar

Been battling to get #LaravelSail working with rootless #Podman all evening and aren't having much luck. Boo to overly complex things.

It's so close to working well but the whole uid/gid mapping thing just falls apart when the container starts running things as different users. All of a sudden there're large parts of my source tree that I can't edit, not to mention being unable to use artisan make tools.

#Laravel #Linux #SelfHost

Nitrousoxide,

@pieceofthepie
There's a few potential ways to handle userns issues.
The most straighforward one that usually solves it all is to just run the userns as keep-id
https://docs.podman.io/en/latest/markdown/podman-run.1.html#userns-mode

if you do want to keep to seperate uid spaces there's uidmap which gives you a lot of control
https://docs.podman.io/en/latest/markdown/podman-run.1.html#uidmap-flags-container-uid-from-uid-amount

pieceofthepie,
@pieceofthepie@n8e.dev avatar

@Nitrousoxide I ended up going with that first one, but only after I'd moved away from #LaravelSail since it was doing something that would stop keep-id from working.

All good now.

simonhamp, to php
@simonhamp@phpc.social avatar

A few hours ago I managed to get a statically-linked build of PHP for Windows working on a machine with no prior installation

This build is a single-file distributable executable that can run a application

This is a major milestone for as it will now be able to support all the major desktop platforms 🎉

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

#PHP #Laravel

j3j5,
@j3j5@hachyderm.io avatar

@stefanzweifel no worries, there are already enough comments there. I have a fork with that PR already merged that I'm using in the meantime. I held my nose and went to twitter to check and apparently he's aware of it🤷

I'll just wait.

https://twitter.com/aarondfrancis/status/1770447016503447572

j3j5,
@j3j5@hachyderm.io avatar
doefom, to Laravel
@doefom@mastodon.social avatar

Using the "Higher Order Messages" of can save you some code. The following examples all filter for published posts in three different ways. I'm not yet sure which way I like the most. Probably (2) and (3).

michael,
@michael@thms.uk avatar

@doefom I don’t like 3. It requires significant mental overhead for me.

My favourite is 2 by a very large margin.

michael,
@michael@thms.uk avatar

@doefom actually I think in this particular instance my favourite would be option 4:

User::where('is_published',1)->get()

😜

shawnhooper, to php
@shawnhooper@fosstodon.org avatar

Do you use Carbon for your #PHP Date calculations? The diffIn* methods have changed in V3.

This is documented, but still caught me by surprise when testing updating to #Laravel 11.

https://shawnhooper.ca/2024/04/11/breaking-change-diffin-carbon/

killianblais,

@shawnhooper yeah, we discovered that by chance when, without changing the tests, our test suite failed after upgrading... It seems to me that it should be covered by Laravel upgrade guide

shawnhooper,
@shawnhooper@fosstodon.org avatar

@killianblais great example of tests being useful!

I know Jason at Laravel Shift plans to (or maybe has already) automate this in the upgrade shift.

j3j5, (edited ) to Laravel
@j3j5@hachyderm.io avatar

Question for my #laravel fellas:

Do you think Bus::dispatch()and dispatch() behave exactly the same? Should they?

Boosts appreciated, obviously :)

michael,
@michael@thms.uk avatar

@j3j5 I actually managed to get a PR merged recently, but yeah, you gotta have quite thick skin (and be quite deferential, which doesn’t come naturally to me 😬)

j3j5, (edited )
@j3j5@hachyderm.io avatar

@michael yeah, not my first rodeo and I keep reporting making PRs because I still benefit from them. I can understand from the other side, a repo like that isn't easy to manage, but that's why I try to make the issues and PRs as clear as possible. I think in this case Dries didn't read past the "not 100% sure if it's a bug" 🤷

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