mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
store invoice profile
This commit is contained in:
47
app/Http/Requests/Oasis/StoreInvoiceProfileRequest.php
Normal file
47
app/Http/Requests/Oasis/StoreInvoiceProfileRequest.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Oasis;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class StoreInvoiceProfileRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'logo' => 'sometimes|file',
|
||||
'stamp' => 'sometimes|file',
|
||||
'company' => 'required|string',
|
||||
'email' => 'required|email',
|
||||
'ico' => 'sometimes|string|nullable',
|
||||
'dic' => 'sometimes|string|nullable',
|
||||
'ic_dph' => 'sometimes|string|nullable',
|
||||
'registration_notes' => 'sometimes|string|nullable',
|
||||
'author' => 'required|string',
|
||||
'address' => 'required|string',
|
||||
'state' => 'required|string',
|
||||
'city' => 'required|string',
|
||||
'postal_code' => 'required|string',
|
||||
'country' => 'required|string',
|
||||
'phone' => 'required|string',
|
||||
'bank' => 'required|string',
|
||||
'iban' => 'required|string',
|
||||
'swift' => 'required|string',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user