app/Http/Requests/StoreEmpReportsRequest.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 [
            'emp_id' => 'required',
            'emo_id' => 'required',
            'phone' => 'required',
            'address' => 'required',
            'payment' => 'required',
            'hour' => 'required',
            'hour_plus' => 'required',
           'imageFile' => 'required|image',
           'imageFile.*' => 'mimes:jpeg,jpg,png,gif,csv,txt,pdf|max:2048',
           'notes' => 'required',
        ];
    }
public function rules ( ) { return [ 'emp_id' => 'required' , 'emo_id' => 'required' , 'phone' => 'required' , 'address' => 'required' , 'payment' => 'required' , 'hour' => 'required' , 'hour_plus' => 'required' , 'imageFile' => 'required|image' , 'imageFile.*' => 'mimes:jpeg,jpg,png,gif,csv,txt,pdf|max:2048' , 'notes' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .