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

Okay, I know what I did wrong: Controller:

#Auth failed
return Redirect::back() -> with('failed', 'Your Auth failed!') -> withInput(Input::except('password'));

login view:

<?php $status = Session::get('status')
?>

@if (!empty($status))
	<div class="alert alert-danger">
		{{ $status }}
	</div>
@endif

Is this okay, or are there some tips to make it smaller/nicer?

Thanks

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

LukasMa lukasma Joined 26 Nov 2014

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.