generated from Logisim-Evolution/Laravel-Docker
69 lines
1.2 KiB
PHP
69 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Requests\StoreMangasRequest;
|
|
use App\Http\Requests\UpdateMangasRequest;
|
|
use App\Models\Mangas;
|
|
|
|
class MangasController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index()
|
|
{
|
|
$mangas = Mangas::all();
|
|
return view("index", compact("mangas"));
|
|
}
|
|
|
|
/**
|
|
* Show the form for creating a new resource.
|
|
*/
|
|
public function create()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Store a newly created resource in storage.
|
|
*/
|
|
public function store(StoreMangasRequest $request)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Display the specified resource.
|
|
*/
|
|
public function show(Mangas $manga)
|
|
{
|
|
$genre = $manga->genre;
|
|
return view("vManga", compact("manga", "genre"));
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*/
|
|
public function edit(Mangas $mangas)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Update the specified resource in storage.
|
|
*/
|
|
public function update(UpdateMangasRequest $request, Mangas $mangas)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Remove the specified resource from storage.
|
|
*/
|
|
public function destroy(Mangas $mangas)
|
|
{
|
|
//
|
|
}
|
|
}
|