PHP Hot

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
mobileatom, to Symfony
@mobileatom@flipboard.com avatar

SymfonyOnline June 2024: Designing Security-First Symfony Apps.

https://symfony.com/blog/symfonyonline-june-2024-designing-security-first-symfony-apps?utm_source=flipboard&utm_medium=activitypub

Posted into SYMFONY FOR THE DEVIL @symfony

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
typo3, to php German
@typo3@typo3.social avatar

We had a great time at the Experts Group in Berlin, engaging in meaningful conversations and gaining valuable insights. Our team covered the recent General Assembly in Zurich and our upcoming communication strategies. A big thank you to Janus Boye for hosting us.

image/jpeg

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
mobileatom, to Symfony
@mobileatom@me.dm avatar

This week's The Payload newsletter is out. It has the latest news and more in the Symfony, Drupal, PHP, Cybersec, and Fediverse development communities. https://newsletter.mobileatom.net/?mailpoet_router&endpoint=view_in_browser&action=view&data=WzI3LCIwNjQ2NDQxZmIzNTkiLDEwMywiYWMwYjRlIiwyMywxXQ

doefom, to Laravel
@doefom@mastodon.social avatar

Using global query scopes for simple one-to-many tenancy.

Code example of a cat pension app I've started and never finished. It's structured like this:

  • A user belongs to a pension
  • A pension has many clients
  • A client has many animals

Users (cat pension owners and their employees) can only view clients and animals from the same pension. Global query scopes ensure this rule is consistently applied throughout the app without accidentally forgetting it somewhere in your code.

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