授权(ACL)和角色
if (Gate::denies('edit-contact', $contact)) {
abort(403);
}
if (! Gate::allows('create-contact', Contact::class)) {
abort(403);
}Last updated
if (Gate::denies('edit-contact', $contact)) {
abort(403);
}
if (! Gate::allows('create-contact', Contact::class)) {
abort(403);
}Last updated