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.
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 :
#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?
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.
@SenseException I blame popular libraries and frameworks that are still array-based. (#Laravel and AWS-SDK at the top of that list. #Drupal, less than it used to be but still.) And people who cut their teeth on CodeIgnighter et al and never grew past that.
We're getting close to finishing so I'll expand. While fixing a bug on the rector-laravel package, I find out that you can queue closures using dispatch (as per the docs) but you can't when using Bus::dispatch(). I thought this was a bug but I got the issue closed (probably for not being assertive enough, haha). What do you think?
Using the "Higher Order Messages" of #Laravel 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).
Wanted to get some low hanging fruit tickets done for Questlog. Well I also decided to create more robust testing and now I finished the first task after 3 minutes and fighting Pest for 27 minutes now.
Why in all seven hells is Game::factory()->count(5)->create(); not creating 5 games? It's always 2 or 3. Never 5. This is absolutely infuriating…
I just wanted to get my list shorter and don't break stuff while I do.
The fun part? Also creating all 5 games manually fails. Without any log or something like that…
Oof. This was a really stupid error… My factory generated games with different categories. Main Game, DLC/AddOn and Expansion.
But the view I was testing filtered games by Main Game only… So by chance it was extremely unlikely that every game is a Main Game and so the count never was 5.
Do you use Encrypted Environment files in Laravel?
I think they are great for some special use cases, but given the prevalence of API keys and credentials found in repos, is it worth it to use them all the time?
There was a bit of a debate about this last time I posted it, so I'm curious to see how we're all feeling about them now. Or maybe I'm just being a old security grump? 🧐
Does Google index my web application when using #Laravel with #inertiajs (no SSR)? I read articles that say it doesn't, I read articles that say JS is no longer an issue for Google. What's true? Or can there even be a clear answer here?
#Laravel models can use casts to transform a value when either getting or setting it. In this case I use this feature to remove id, class and style attributes from an HTML string while I want to keep the other ones.
I was asked to upgrade/update an old #laravel (5.3) project to the latest version of laravel and #php. I’ve already seen the code and let’s say it’s going to be interesting. A lot of customizations 😱 Not calling parent constructors which contain dependencies for example (probably not necessary). And also not even following certain Laravel standards. What did they use of the Laravel framework? Facades and helper functions 😑 (I really don’t like them, just use constructor DI 😉)
Top 25 Laravel Interview Questions and Answers (medium.com)
Laravel has emerged as a leading PHP framework, prized for its elegance, simplicity, and powerful features.