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.
28 lines
560 B
PHP
28 lines
560 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CustomerRequest extends FormRequest
|
|
{
|
|
/**
|
|
* @return array<array<string>>
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'company_name' => ['required'],
|
|
'internal_name' => ['required'],
|
|
'shipping_address' => ['required'],
|
|
'billing_address' => ['required'],
|
|
'phone' => ['required'],
|
|
];
|
|
}
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|