<?php
namespace App\Http\Requests;
use App\Traits\RouteValidation;
use Dingo\Api\Http\FormRequest;
class StoreApprovalCommitteeRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
//check for duplicate
return true;
}
/**
* Get the validation rules that apply to the request.
* Approval Committee ID must be unique for every Meeting
* @return array
*/
public function rules()
{
return [
'approval_committee_id'=>'int|unique:meeting_approval_committee,approval_committee_id,NULL,meeting_id,meeting_id,'.$this->meeting.'',
'is_chairperson'=>'boolean',
'is_presenter'=>'boolean',
'attendance'=>'boolean',
];
}
}