How do you handle different policies on one resource depending on the controller called?

This page summarizes the projects mentioned and recommended in the original post on /r/laravel

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. laravel-permission

    Associate users with roles and permissions

    I found interesting that the Spatie permission package recommends in their docs to include the authorization logic inside policies to encapsulate the code. But if policies are not in the equation feels like authorization ends up being spread across controllers and I didn't find the "laravel way" to do role based authorization besides gates, but even then it seems like a less refined solution than policies.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. bouncer

    Laravel Eloquent roles and abilities.

    That'd be great honestly, but I haven't found anything similar yet. I took a look at Bouncer but it doesn't seem to solve the problem either, just resource-based authorization too.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • CRM for shipping company, how to develop ?

    2 projects | /r/laravel | 1 Jun 2022
  • RoleBased Permissions

    2 projects | /r/laravel | 21 Jul 2021
  • What Laravel permission package do you usually use? Does anyone come with Laravel Gate and Policy?

    4 projects | /r/laravel | 16 May 2021
  • How can I add simple Roles to Laravel Breeze

    1 project | /r/laravel | 25 Aug 2022
  • Multi-tenancy/user roles - tutorial suggestions

    1 project | /r/laravel | 15 Feb 2021