laratrust icon indicating copy to clipboard operation
laratrust copied to clipboard

Handle roles and permissions in your Laravel application

Results 49 laratrust issues
Sort by recently updated
recently updated
newest added

https://github.com/santigarcor/laratrust/blob/cfaf84d2503476a1ae96e45599b3d8bd417d2840/src/Http/Controllers/PermissionsController.php#L38 Hi Santiago, I noticed in the PermissionsController for the admin panel that the Permission name is unique based on the 'roles' table. This might be the intended behaviour, but...

- Laravel Version: 10.0 - Laratrust Version: 8.0 **Describe the bug** The `isAbleTo`function is very slow. I have many users with many teams and many permissions. In one case, a...

add localization support for error messages. now one can set abort message in config to 'common.laratrust.abort' and add its translations to locale files.

This PR adds support for users table that uses `UUID` as primary keys instead of the default `integer` type

If we manage to get to my [monthly goal](https://github.com/sponsors/santigarcor), during that month/time I will work on rebuilding the admin panel with Vue supporting the teams feature and even maybe add...

enhancement

- Laravel Version: 10.10.1 - Laratrust Version: 8.2.1 **Describe the bug** Setting the **permissions_as_gates** with teams enabled breaks the `can` method in routes. The view is returned 404 not found....

- Laravel Version: 9.31 - Laratrust Version: 7.1 **Describe the bug** If you have teams enabled, the built-in Laratrust panel has no way of selecting a team for the permissions...

enhancement
help wanted

This PR adds the new `once()` helper function to Laratrust along with the option to enable/disable it via the configuration file. This is useful as it removes the need to...

#Roles & Permissions Absence I think there is a mistake on the query of User::whereDoesntHavePermission()->get(), i believe it should be User::whereDoesntHavePermissions()->get()