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

33 lines
835 B
PHTML

3 months ago
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ShippingEntryRequest extends FormRequest
{
/**
* @return array<array<string>>
*/
3 months ago
public function rules(): array
{
return [
3 months ago
'shipping_type' => ['required'],
'customer_id' => ['required', 'exists:customers,id'],
'courier' => ['nullable'],
'contact' => ['nullable'],
'account_title' => ['nullable'],
3 months ago
'account_username' => ['nullable'],
'account_password' => ['nullable'],
3 months ago
'info_needed' => ['nullable'],
'notify' => ['nullable'],
'notes' => ['nullable'],
3 months ago
];
}
public function authorize(): bool
{
return true;
}
}