| Current Path : /var/www/html/LLCF-APP/app/Http/Requests/ |
| Current File : /var/www/html/LLCF-APP/app/Http/Requests/StoreCompanyRequest.php |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreCompanyRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'companyName' => 'required|string|max:255',
'companyAddress' => 'nullable|string|max:500',
'companyPhone' => 'nullable|string|max:20',
'timeStamp' => 'nullable|date',
'idUser' => 'nullable|integer',
'isActive' => 'nullable|boolean',
'idBillTitle' => 'nullable|integer',
'unitPrice' => 'nullable|numeric|min:0',
'idCurrency' => 'nullable|integer',
'tSign' => 'nullable|string|max:255',
'rSign' => 'nullable|string|max:255',
'vat' => 'nullable|numeric|min:0',
'smCharges' => 'nullable|numeric|min:0',
];
}
}