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
PHP

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