Create routes and views for suppliers.
This commit is contained in:
41
app/Http/Controllers/SupplierController.php
Normal file
41
app/Http/Controllers/SupplierController.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user