Support the ongoing development of Laravel.io →
Installation Configuration Blade
Last updated 2 years ago.
0

You use whatever you want including different libraries to build forms. To install the Illuminate one use

composer require "illuminate/html"
0

Thanks I have added this and updated app.php with

providers 'Illuminate\Html\HtmlServiceProvider',

and

alisases 'Form' => 'Illuminate\Html\FormFacade'

but my page cannot read the class Undefined class constant 'open'

Any ideas?

0
Solution

Blade in Laravel 5 has a new security feature. It will autoescape everything you put between {{ and }}. You need to use

{!! Form::open(['route' => 'user.login', 'method' => 'post', 'class' => 'navbar-form']) !!}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ottz0 ottz0 Joined 15 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.