Support the ongoing development of →
Security Forms Validation
Last updated 2 years ago.

Short: The controller sends it to the view.

Long: I assume you are using a freshly installed laravel project, which provides an authentication example out of the box. Now look at the AuthController (app/Http/Controllers/Auth), you will recognize that it uses a trait called AuthenticatesAndRegistersUsers where you'll find the following method:

public function postRegister(Request $request)
	$validator = $this->registrar->validator($request->all());

	if ($validator->fails())
			$request, $validator


	return redirect($this->redirectPath());

This is where all the 'magic' happens. I recommend to read the following documentations which will help you to understand this function:

Regards MightyM

Last updated 9 years ago.

Sign in to participate in this thread!


Your banner here too?


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

Your logo here?

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

© 2024 - All rights reserved.