Question:

Look at the code snippet. This was introduced in which Laravel version?
 

if (Gate::forUser($user)->allows('update-post', $post)) {
    //
}

if ($request->user()->can('update-post', $post)) {
    // ... Update post
}

@can('update-post', $post)
    Edit Post
@endcan

 

Answers:


Keywords:

© 2017 QuizBucket.org