Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Blade & Forms Form Builder

Problem with form

In Laravel 5 the form package is not included so i update the composer.json file and the app.php file. The problem is that the browser echo the html in the page and not the form..how can i solve that?

2 Answers

Joshua Efiong
Joshua Efiong
758 Points

I believe you have to replace something like:

{{ Form::open( array('route' => 'todos.store') ) }}

with:

{!! Form::open( array('route' => 'todos.store') ) !!}

Otherwise, blade will escape the HTML and output the string equivalent.

perfect!thank you!