megacommit
This commit is contained in:
parent
2451ab45cb
commit
34ed81516b
51 changed files with 1200 additions and 251 deletions
19
app/Http/Controllers/Main/GenreController.php
Normal file
19
app/Http/Controllers/Main/GenreController.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Main;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class GenreController extends Controller
|
||||
{
|
||||
public function show($id)
|
||||
{
|
||||
return view('main.genres.genre', ['title' => "Genre", 'genre' => \App\Models\Genre::findOrfail($id)]);
|
||||
}
|
||||
|
||||
public function showAllGenres()
|
||||
{
|
||||
return view('main.genres.index', ['title' => "Genres", 'genres' => \App\Models\Genre::all()]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue