tsalaroth
tsalaroth

Reputation: 112

Form::open() is generating an https URL instead of http. What am I doing wrong?

Laravel's Form::open() is generating an HTTPS URL for the POST location instead of HTTP. How can I force this to work?

Here is the Form::open() code:

{{ Form::open(URL::to('someurl/somedest', 'POST', array('class' => 'form-horizontal'))); }}

Upvotes: 0

Views: 679

Answers (1)

BenjaminRH
BenjaminRH

Reputation: 12172

Form::open() should only generate an http url, Form::open_secure() is for https forms. Also, you don't need the URL::to() in there. Try this:

{{ Form::open('someurl/somedest', 'POST', array('class' => 'form-horizontal')) }}

Here's the documentation page, for reference.

Upvotes: 2

Related Questions