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/OrderRequest.php

46 lines
1.3 KiB
PHTML

3 months ago
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class OrderRequest extends FormRequest
{
/**
* @return array<array<string>>
*/
3 months ago
public function rules(): array
{
return [
2 months ago
// Order
3 months ago
'customer_id' => ['required', 'exists:customers,id'],
'contact_id' => ['nullable', 'exists:contacts,id'],
'customer_po' => ['required', 'string'],
'order_type' => ['required', 'string'],
'order_date' => ['required', 'date'],
'due_date' => ['required', 'date'],
'status' => ['required'],
'rush' => ['nullable'],
'new_art' => ['nullable'],
'digitizing' => ['nullable'],
'repeat' => ['nullable'],
'purchased_garments' => ['nullable'],
'customer_supplied_file' => ['nullable'],
'notes' => ['nullable'],
2 months ago
// Order Products
// Product Sizes
// Product Services
// Service Files
3 months ago
];
}
public function authorize(): bool
{
return true;
}
}