mostafamaklad / laravel-permission-mongodb

Associate users with roles and permissions using Laravel and MongoDB
https://maklad.dev
MIT License
112 stars 66 forks source link

illegal offset type #126

Open amirhilal-uxbert opened 3 years ago

amirhilal-uxbert commented 3 years ago

Describe the bug I was trying to use $user->getAllPermissions() and I got an exception illegal offset type

To Reproduce Steps to reproduce the behavior:

  1. inside roles collection admin_ids array delete one of the values or change to null

Screenshots

image

Environment :

Additional context Would have been great if there was a better exception handling to this issue