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

Hi, Sangodada. This is quite easy actually but sometimes can be a little tricky for newbs like us.

Reason

In Laravel 5+ you need {!! element !!} for unscape html instead of {{ element }}.

The reason you see some examples using {{ element }} is because that is the correct way in laravel 4, and the default is unscaped. In laravel 5 the default is scaped {{ }} to prevent attacks.

Change your code to:

 {!! Form::open(array('url' => 'login')) !!}
             {!! Form::label('email', 'Email:') !!}
 {!! Form::close() !!}

More Info Laravel Documentation: Displaying Data

PD: Hope you'll understand english is not my native language.

0

Thank u very much :D it works fine. Thank u :)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

sangodada sangodada Joined 17 Nov 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.