initial commit
This commit is contained in:
17
app/Http/Controllers/SaleController.php
Normal file
17
app/Http/Controllers/SaleController.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Sale;
|
||||
use Illuminate\Http\Request;
|
||||
use Inertia\Inertia;
|
||||
|
||||
class SaleController extends Controller
|
||||
{
|
||||
public function show(Request $request, Sale $sale)
|
||||
{
|
||||
return Inertia::render("Sale", [
|
||||
"sale" => $sale->with("market", "subMarket")->first(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user