@sarah Perhaps, but in practice the global function calling the app container has never caused any problems for me. And you definitely could inject the config repository where needed, it's just not conventional Laravel. I prefer sticking with conventions.
I probably get flooded by asking this but welp, here I go:
I'm looking for a good, visual (!) #tutorial for #WebDevelopment that focuses on Codium, Firefox and other Open-Source tools. My specific interests are to learn #HTML, #CSS, #PHP and #SQL. Perhaps some minor #Javascript, however I'd like to primarily work without it.
I'm a visual learner, extended theory in text won't help me at all. As language is visual to me, so is #programming.
@Crell Only if necessary, it makes the learning process unnecessarily convoluted (harder to scrub through a video than a website and the pace is always changing).
Thanks to kochen and jankal on GitHub (don’t think either are here in the Fediverse), there’s a new version of ramsey/uuid-doctrine (v2.1.0), with support for doctrine/dbal v4 and binary types in PostgreSQL. 🎉🎊🥳
#PHP foreach() works on arrays and objects. On objects, it skips uninitialized properties, which may be very convenient with readonly properties : otherwise, it is a fatal error!
So, I’m building a #php dependency-injection package, and it’s a lot of fun. I’ve gone a route that I don’t really see many, if any, following. I suspect it may be that a lot of the solutions out there are old, and while they have been updated, they’re still going to inherit certain approaches.
Writing the most basic #activitypub implementation in #php that is compatible with shared hosting. I've seen some other great projects, but I needed a "call this function with a simple message" functionality for some existing websites