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