I want to apply authorization check on all my routes for a resource. For example:
- Admin can create Doctor
- Admin can update Doctor
- Admin can view Doctor(s)
- Admin can delete Doctor
Can I achieve this by applying "can" middleware on resource routes, something like:
Route::resource('doctors', 'DoctorsController')->middleware('can:*,App\Doctor');
Thanks!