Replies: 7 comments 5 replies
-
That problem is with your DB user permissions, not on this package |
Beta Was this translation helpful? Give feedback.
-
I have activated team and the creation of both the user, roles and permissions works perfectly the only thing wrong is the assignRole function :( |
Beta Was this translation helpful? Give feedback.
-
this is my code: permmission model: `<?php namespace App\Models; use App\Enums\OracleConn; class Permission extends SpatiePermission `<?php namespace App\Models; use App\Enums\OracleConn; class Role extends SpatieRole |
Beta Was this translation helpful? Give feedback.
-
i am sorry.. :( |
Beta Was this translation helpful? Give feedback.
-
ok.. i show you my permission model: namespace App\Models;
use App\Enums\OracleConn;
use Spatie\Permission\Models\Permission as SpatiePermission;
class Permission extends SpatiePermission
{
protected $connection = OracleConn::CONN_ORACLE_AUTH;
} |
Beta Was this translation helpful? Give feedback.
-
Best regards
Il lun 13 feb 2023, 18:05 fredsal ***@***.***> ha scritto:
… What means "br Max"?
—
Reply to this email directly, view it on GitHub
<#2327 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTSU24HOS6QLBTYG6ERPDWXJSURANCNFSM6AAAAAAU2PRY4E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Access denied for user 'forge'@'localhost' (using password: NO) |
Beta Was this translation helpful? Give feedback.
-
hi, I followed your directives when you have multi connections, so I created 2 models (role, permission) like this:
assignRole('admin');) it gives me this error. From what I understand is that the command does not recognize the connection. the errors is: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from `roles` where (`team_id` is null or `team_id` is null) and `name` = admin and `guard_name` = jwt limit 1) any help ? br MaxBeta Was this translation helpful? Give feedback.
All reactions