Create routes and views for suppliers.

This commit is contained in:
2025-02-10 12:47:57 +01:00
parent 3f07d333df
commit 7c085dfa6b
12 changed files with 664 additions and 12 deletions

View 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]);
}
}