bouncer
spatie.be
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bouncer
-
Best way to only allow a user to view their own models?
Bouncer on the other hand supports scoped permission assignments where the assigned permission applies to a specific model only.
Your approach would work but if you need something more robust or flexible check out https://github.com/JosephSilber/bouncer
-
How do you handle different policies on one resource depending on the controller called?
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.
-
A Complete Guide To Managing User Permissions In Laravel Apps
As well as using Spatie's Laravel Permission package, there are other packages that can be used to add roles and permissions to your application. For example, you could use Bouncer or Laratrust.
-
CRM for shipping company, how to develop ?
There are a few open source Laravel packages for managing roles and permissions. See https://github.com/spatie/laravel-permission or https://github.com/JosephSilber/bouncer.
-
Implementing RBAC in Laravel Tutorial
In this tutorial, you'll learn how to implement RBAC in Laravel using Bouncer. Bouncer is a PHP package that lets you add roles and abilities to your Eloquent models.
- RoleBased Permissions
-
What Laravel permission package do you usually use? Does anyone come with Laravel Gate and Policy?
https://github.com/JosephSilber/bouncer and https://github.com/spatie/laravel-permission are both solid choices
spatie.be
-
Installing Xdebug 3 on MacOS and Debug in VS Code
How do you debug your code in PHP? Do you use var_dump or dd in Laravel? Many of us also use logger to log output & figure out the problem in multiple steps. Spatie built a debugging tool called Ray that one can use to simplify the operation over dd or logger.
-
A Complete Guide To Managing User Permissions In Laravel Apps
In this article, we'll be using the Laravel Permission package from Spatie.
-
My MacBook Setup for Development!
Ray by Spatie - Debugger tool
-
Speeding up SSL checking process
We use Oh Dear from spatie.be to check availability, dead links, certs and more for our critical FQDNs. Works perfectly fine. we also see it as a way to give something back to them in return for all their hard work in maintaining their open-source packages for Laravel.
-
Modern PHP Cheat Sheet
The guys behind it work at Spatie[1] which you have probably heard of some of their packages, and Freek has a blog[2] that has a lot of PHP stuff on - lots Laravel, and lots just general new language stuff (covering PHP8 features etc)
-
Can anyone point me to a repo for a website built in Laravel that has what you would consider really well written tests that I can learn from.
Spatie (https://spatie.be) makes a lot of great packages for Laravel. It also has a website with video courses and the code is open-sourced here https://github.com/spatie/spatie.be. I’ve learned a lot about testing from Spatie packages.
-
Coming Up With Project Ideas (Naturally)
So I along with my colleague M H Hasib started working on a project of our own inspired from the API of laravel-permissions package by Spatie and the result was mongoose-permissions package.
What are some alternatives?
laravel-permission - Associate users with roles and permissions
laravel-mysql-spatial - MySQL Spatial Data Extension integration with Laravel.
laratrust - Handle roles and permissions in your Laravel application
CASL - CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access
laravel-fortify-demo - Demo of Laravel authentication using Fortify
laravel-rbac-tutorial - Code for Laravel RBAC Tutorial
sanctum - Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel-attributes - ⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
laravel-authz - An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Laravel-JS-Localization - 🌐 Convert your Laravel messages and consume them in the front-end!
laravel-form-builder - Laravel Form builder for version 5+!