-
In my
In my migration,
In my
My Seeder for testing
Looks possible but
Can anyone help on this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
First, always put /**
* Determine whether the user can show the model.
*
* @param \App\Models\User $user
* @param \App\Models\User $model
* @return \Illuminate\Auth\Access\Response|bool
*/
public function show(User $user, User $model)
{
return $user->can('view-user');
} Second, this package not fully support Maybe // In Laravel 6.0+ make sure to also set $keyType
protected $keyType = 'string'; https://github.com/spatie/laravel-permission/blob/main/docs/advanced-usage/uuid.md |
Beta Was this translation helpful? Give feedback.
First, always put
php
(js
,html
depends) after ``` for readability (```php), exampleSecond, this package not fully support
uuid
,also you can't change field name
id
touuid
, go back toid
#1909 in the past I did a PR for this, but it wasn't merged, maybe it can help you
Maybe
https://github.com/spatie/laravel-permission/blob/main/docs/advanced-usag…