Support the ongoing development of Laravel.io →
Requests Forms Validation
Last updated 2 years ago.
0

I am getting the same problem... I just had one element in the rules array which was working fine, but I added TWO extra optional elements and now everytime i press submit in the form, I get blank page (if i remove those two elements added, it all works fine)

by elements i mean input fields.

public function rules()
	{
		$rules = [
			'email'     => 'required|email',
            'name'      => 'alpha|min:3',
            'location'  => 'alpha|min:3',
		];

		return $rules;
	}

PS> i uploaded this to my digital ocean server & I dont get the error there! (On my local, i am using homestead & have also just updated laravel & other vendors to see if that would help)

Last updated 9 years ago.
0

You're validating the field premiseUse but there is no field with that name in your form.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

arianpour arianpour Joined 4 Jul 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.