megacommit
This commit is contained in:
parent
2451ab45cb
commit
34ed81516b
51 changed files with 1200 additions and 251 deletions
|
@ -10,10 +10,13 @@ class GenreController extends Controller
|
|||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
$this->middleware('atleast:employee');
|
||||
$this->middleware('permission:manage_genres')->only(['create', 'store', 'edit', 'update', 'destroy']);
|
||||
$this->middleware('permission:READ_GENRES')->only('index', 'show');
|
||||
$this->middleware('permission:CREATE_GENRES')->only('create', 'store');
|
||||
$this->middleware('permission:UPDATE_GENRES')->only('edit', 'update');
|
||||
$this->middleware('permission:DELETE_GENRES')->only('destroy');
|
||||
}
|
||||
|
||||
public function showAllGenres() {
|
||||
public function index() {
|
||||
return view('manage.genres.index', ['title' => "Manage Genres", 'genres' => \App\Models\Genre::all()]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue