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

No query results for model #124

Closed sajadabs closed 3 years ago

sajadabs commented 3 years ago

Hi, I install this package and when i want give permission to role or assign a role to user laravel throw me this exception : "message": "No query results for model [Maklad\Permission\Models\Role] admin", "exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException", "file": "D:\...\...\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php", "line": 381, thanks for helping me.

mostafamaklad commented 3 years ago

Please make sure that you have created the role that you are assigning to