You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
topnotch_website/app/Http/Requests/PackingSlipRequest.php

29 lines
652 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PackingSlipRequest extends FormRequest
{
/**
* @return string<array<string>>
*/
public function rules(): array
{
return [
'date_received' => ['required|date'],
'customer_id' => ['required|exists:customers,id'],
'order_id' => ['string|nullable'],
'amount' => ['required|string'],
'contents' => ['required|string'],
'from_customer' => ['required|bool'],
];
}
public function authorize(): bool
{
return true;
}
}