Files
project/app/Http/Controllers/PaymentController.php

35 lines
658 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Payment;
use Illuminate\Contracts\View\View;
class PaymentController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(): View
{
return view('payment.index');
}
/**
* Show the form for creating a new resource.
*/
public function create(): View
{
return view('payment.create');
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Payment $payment): View
{
return view('payment.edit', ['payment' => $payment->load('invoice')]);
}
}