mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 05:16:49 -04:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Modules\Customer\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
class UpdateCompanyInfoRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'company_name' => 'required|max:255',
|
|
'brand_name' => 'required|max:255',
|
|
'storefront' => 'required|max:255',
|
|
'company_address' => 'required',
|
|
'accounts_payable_name' => 'required|max:255',
|
|
'accounts_payable_email' => 'required|email',
|
|
'marketing_contact_name' => 'required|max:255',
|
|
'marketing_contact_email' => 'required|email',
|
|
'additional_contacts.*.name' => 'required',
|
|
'additional_contacts.*.email' => 'required|email',
|
|
'additional_contacts.*.position' => 'required'
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
}
|