Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
61 lines
1.6 KiB
PHP
61 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Member;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class MemberStore extends FormRequest
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
"id" => 'sometimes|numeric',
|
|
"user_id" => 'sometimes|numeric',
|
|
"branch_id" => 'numeric',
|
|
"sub_branches" => '',
|
|
'type' => '',
|
|
"informal_name" => 'required|max:255',
|
|
"formal_name" => 'required|max:255',
|
|
"kvk_number" => 'required|numeric',
|
|
'website' => '',
|
|
'logo' => 'sometimes|mimes:jpeg,jpg,png|max:2048',
|
|
'show_on_website' => '',
|
|
'helpdesk_department' => '',
|
|
'helpdesk_contact_person' => '',
|
|
'helpdesk_email' => '',
|
|
'helpdesk_phone' => '',
|
|
'info_department' => '',
|
|
'info_contacteperson' => '',
|
|
'info_email' => '',
|
|
'info_phone' => '',
|
|
'info_address' => '',
|
|
'info_housenumber' => '',
|
|
'info_postal' => '',
|
|
'info_city' => '',
|
|
'info_country' => '',
|
|
'info_link' => '',
|
|
'more_info_link' => '',
|
|
|
|
'start_membership' => '',
|
|
'end_membership' => '',
|
|
'contribution' => '',
|
|
'invoice_number' => '',
|
|
];
|
|
}
|
|
}
|