42 lines
774 B
PHP
42 lines
774 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Supplier;
|
|
|
|
class SupplierController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index()
|
|
{
|
|
return view('supplier.index');
|
|
}
|
|
|
|
/**
|
|
* Show the form for creating a new resource.
|
|
*/
|
|
public function create()
|
|
{
|
|
return view('supplier.create');
|
|
}
|
|
|
|
/**
|
|
* Display the specified resource.
|
|
*/
|
|
public function show(Supplier $supplier)
|
|
{
|
|
return view('supplier.show', ['supplier' => $supplier]);
|
|
}
|
|
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*/
|
|
public function edit(Supplier $supplier)
|
|
{
|
|
return view('supplier.edit', ['supplier' => $supplier]);
|
|
}
|
|
|
|
}
|