授权
一次检查多个权限
@canany(['update', 'view', 'delete'], $post)
// The current user can update, view, or delete the post
@elsecanany(['create'], \App\Post::class)
// The current user can create a post
@endcanany更多关于用户注册的事件
class EventServiceProvider extends ServiceProvider
{
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
// You can add any Listener class here
// With handle() method inside of that class
],
];你知道 Authonce 吗
更改用户密码更新的 API 令牌
覆盖超级管理员的权限
最后更新于