app/Http/Requests/RegisterRetailerDataRequest.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|max:255',
            'shopName' => 'required|max:255',
            'address' => 'required|max:255',
            'contactNo' => 'min:10|numeric',
            'retailerImage' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',
            'password' => 'required|min:6|confirmed',
            'password_confirmation' => 'required|min:6',
            'email' => 'required|email|max:255|unique:users',
         ];
    }
public function rules ( ) { return [ 'name' => 'required|max:255' , 'shopName' => 'required|max:255' , 'address' => 'required|max:255' , 'contactNo' => 'min:10|numeric' , 'retailerImage' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048' , 'password' => 'required|min:6|confirmed' , 'password_confirmation' => 'required|min:6' , 'email' => 'required|email|max:255|unique:users' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .