laratrust
laratrust copied to clipboard
Handle roles and permissions in your Laravel application
Hello, im a little bit confused how i would handle multiple team types. (Maybe its a dumb questions and i just need sleep) Lets say i have a sport team...
I am using **Laravel 8** and **Laratrust 6.x** for the authentication part. but when I run **php artisan db:seed** command some of following tables `users, role_user, permission_user` are not **seeds**...
According to laravel documentation in package development you can load and publish the migration instead of running them as a command.
I'm using Larastan (PHP Stan) to scan the code for bugs and typos. The function `hasPermission($permission, $team = null, $requireAll = false)` accepts int in the $team variable handled by...
First, amazing product. Absolutely love it! Second, let me apologize if this is not the right place for this type of request... I am using latest version of both Laravel...
It will be good if you update it in the controller. Thanks. ![screenshot-127 0 0 1_8000-2022 09 10-14_23_13](https://user-images.githubusercontent.com/23209080/189476309-d986a7c2-df05-4ce8-afe9-174610d9e863.png)
- Laravel Version: 9.19 - Laratrust Version: 7.1.0 - PHP version: 8.1.6 **Describe the bug** When access to a route with the `role` middleware applied the following deprecation message appears...
I'm using phpstan. When I use `LaratrustUserTrait::getRoles` in client code, phpstan tells me that the return value of `getRoles` is `bool`. The method defined as ```php /** * Get the...
- Laravel Version: 10x - Laratrust Version: 8x **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: