app/Api/V1/Requests/InternalUserEditRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'email' => 'bail|required|email',
            'first_name' => 'required|max:255',
            'last_name' => 'required|max:255',
            'phone' => 'required|min:8|max:20',
            'job_title' => 'required|string',
            'institution_id' => 'required',
            'employed_date' => 'numeric|min:1950',
            'grade_id' => 'required',
            'parastatal_id' => 'required',
            'logo' => 'image|mimes:jpeg,png,jpg,gif,svg'
        ];
    }
public function rules ( ) { return [ 'email' => 'bail|required|email' , 'first_name' => 'required|max:255' , 'last_name' => 'required|max:255' , 'phone' => 'required|min:8|max:20' , 'job_title' => 'required|string' , 'institution_id' => 'required' , 'employed_date' => 'numeric|min:1950' , 'grade_id' => 'required' , 'parastatal_id' => 'required' , 'logo' => 'image|mimes:jpeg,png,jpg,gif,svg' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .