array, to php
@array@fosstodon.org avatar

My first was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore

Crell, to react
@Crell@phpc.social avatar

This article uses as it's main example, but it applies to , , even just a much. I say that as a recovering Drupal dev who used to use the standardization argument.

Greedy management is the reason we can't have nice things.

https://www.baldurbjarnason.com/2024/react-electron-llms-labour-arbitrage/

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. 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

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

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. 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 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

/ Eloquent looks way easier than / typeorm and / / 😅

pieceofthepie, to Laravel
@pieceofthepie@n8e.dev avatar

. 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 ?
What is a Dockerfile? WTF is Vite?

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

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 #PHP installation

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

This is a major milestone for #NativePHP 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

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).

shawnhooper, to php
@shawnhooper@fosstodon.org avatar

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

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

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

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

Question for my fellas:

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

Boosts appreciated, obviously :)

j3j5,
@j3j5@hachyderm.io avatar

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?

https://github.com/laravel/framework/issues/51150

kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

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…

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

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.

If feel really dumb right now.

JonTheNiceGuy, to python
@JonTheNiceGuy@toot.io avatar

Maybe my google-fu has defeated me, but I want to find a sample or template for 's based web application which has:

  • Basic Auth + TOTP or SAML authentication
  • A REST API using API tokens
  • An ORM for database objects
  • An admin interface for manipulating the objects in the ORM

I don't want 12 different howtos documenting how to write an insecure ToDo app using the framework of the week. Also, the same for 's .

Help me you're my only hope.

j3j5, to Laravel
@j3j5@hachyderm.io avatar
valorin, to Laravel
@valorin@phpc.social avatar

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? 🧐

https://securinglaravel.com/p/security-tip-encrypting-environment

SenseException, to php German
@SenseException@phpc.social avatar

#PHP talks 10 years ago: "Use value objects instead of arrays."

PHP talks nowadays: "Use value objects instead of arrays."

Crell,
@Crell@phpc.social avatar

@SenseException I blame popular libraries and frameworks that are still array-based. ( and AWS-SDK at the top of that list. , less than it used to be but still.) And people who cut their teeth on CodeIgnighter et al and never grew past that.

One of the many reasons I detest Laravel.

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