31 lines
994 B
PHP
31 lines
994 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\Barobill;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class BarobillSignupRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'business_number' => ['required', 'string', 'max:20'],
|
||
|
|
'company_name' => ['required', 'string', 'max:100'],
|
||
|
|
'ceo_name' => ['required', 'string', 'max:50'],
|
||
|
|
'business_type' => ['nullable', 'string', 'max:50'],
|
||
|
|
'business_category' => ['nullable', 'string', 'max:50'],
|
||
|
|
'address' => ['nullable', 'string', 'max:255'],
|
||
|
|
'barobill_id' => ['required', 'string', 'max:50'],
|
||
|
|
'password' => ['required', 'string', 'max:255'],
|
||
|
|
'manager_name' => ['nullable', 'string', 'max:50'],
|
||
|
|
'manager_phone' => ['nullable', 'string', 'max:20'],
|
||
|
|
'manager_email' => ['nullable', 'email', 'max:100'],
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|