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

27 lines
544 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class OrderProductRequest extends FormRequest
{
/**
* @return array<array<string>>
*/
public function rules(): array
{
return [
'order_id' => ['required', 'exists:orders'],
'sku' => ['string', 'nullable'],
'product_name' => ['required'],
'color' => ['string', 'nullable'],
];
}
public function authorize(): bool
{
return true;
}
}