Look at the code snippet. If that middleware fails, what HTTP code would be returned?
Route::put('/post/{post}', function (Post $post) {
// The current user may update the post...
})->middleware('can:update,post');
Look at the code snippet. If that middleware fails, what HTTP code would be returned?
Route::put('/post/{post}', function (Post $post) {
// The current user may update the post...
})->middleware('can:update,post');
© 2017 QuizBucket.org