Skip to content

Use UUID for all of the tables, but assignRole to fail. #2362

Closed Answered by parallels999
carveybunt asked this question in Q&A
Discussion options

You must be logged in to vote

Did you set your custom models on config?

'permission' => Spatie\Permission\Models\Permission::class,
/*
* When using the "HasRoles" trait from this package, we need to know which
* Eloquent model should be used to retrieve your roles. Of course, it
* is often just the "Role" model but you may use whatever you like.
*
* The model you want to use as a Role model needs to implement the
* `Spatie\Permission\Contracts\Role` contract.
*/
'role' => Spatie\Permission\Models\Role::class,

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@carveybunt
Comment options

Comment options

You must be logged in to vote
2 replies
@carveybunt
Comment options

@parallels999
Comment options

Comment options

You must be logged in to vote
2 replies
@carveybunt
Comment options

@carveybunt
Comment options

Answer selected by carveybunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants