app/Http/Requests/EmployeeRequest.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" => "required",
            "dob" => "required",
            "gender" => "required",
            "address" => "required",
            "email" => "required|email",
            "socialID" => "required",
            "phone" => "required|max:11",
        ];
    }
public function rules ( ) { return [ " name " => " required " , " dob " => " required " , " gender " => " required " , " address " => " required " , " email " => " required|email " , " socialID " => " required " , " phone " => " required|max:11 " , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .