Adding Item Page
This commit is contained in:
parent
868d49af23
commit
ac7e64c75c
6 changed files with 148 additions and 0 deletions
27
app/Http/Controllers/ItemController.php
Normal file
27
app/Http/Controllers/ItemController.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Item;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
||||
class ItemController extends Controller
|
||||
{
|
||||
/**
|
||||
* List all recipies
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('item.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show a recipe
|
||||
*/
|
||||
public function show(Item $item)
|
||||
{
|
||||
return view('item.show', compact('item'));
|
||||
}
|
||||
}
|
||||
Reference in a new issue