app/Http/Requests/UserRequest.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 [
            'name'=>'min:4|max:100|required',
            'email'=>'required|email|max:100',
            'phone'=>'required|numeric',
            'identification'=>'required|numeric',
            'type'=>'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'min:4|max:100|required' , 'email' => 'required|email|max:100' , 'phone' => 'required|numeric' , 'identification' => 'required|numeric' , 'type' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
//