sirber, to Laravel
@sirber@fosstodon.org avatar

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

#php #webdev

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 working with rootless 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.

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

doefom, to Laravel
@doefom@mastodon.social avatar

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

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

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

One of the many reasons I detest Laravel.

doefom, to Laravel
@doefom@mastodon.social avatar

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?

freekmurze, to php
@freekmurze@phpc.social avatar

We have made it!

🥳 One. Billion. Downloads. 🥳

Our story: https://1billion.spatie.be

RT = ❤️

doefom, to Laravel
@doefom@mastodon.social avatar

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.

rolfdenhartog, to Laravel Dutch
@rolfdenhartog@phpc.social avatar

I was asked to upgrade/update an old (5.3) project to the latest version of laravel and . 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 😉)

roberto, to Laravel
@roberto@phpc.social avatar
symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
valorin, to Laravel
@valorin@phpc.social avatar

Let's checkout three of the configuration options available as part of Laravel 11's Automatic Password Rehashing: custom fields, disabling rehashing, and changing bcrypt rounds.

https://securinglaravel.com/p/security-tip-laravel-11s-automatic

phpday, to php
@phpday@phpc.social avatar

"How to contribute to PHP?" will be Gina Peter Banyard 's talk at phpday24.
@Girgias is PHP Core dev

Verona | 16-17 May
Tickets 🎫 bit.ly/4aDoVRW

cctechwiz, to php
@cctechwiz@fosstodon.org avatar

Anyone have a good config for coding in with in ?

I’ve got intelephense pro working but it keeps trying to reformat the default/generated laravel file formatting and it’s bugging me super bad.

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