php - Laravel collectivehtml secure route or url -
in view page have route:
{!! form::open(['url' => 'forumcomment/' . $forum->slug, 'files'=>false, 'id' => 'qw-commentform' ,'class' => 'qt-clearfix']) !!} <hr class="qt-spacer-s"><div class="input-field"> {!! form::textarea('comment', null, ['class'=>'materialize-textarea', 'id'=>'my-editor', 'required'=>'required','aria-required'=>true]) !!} <label for="comment" class="">comment*</label></div> <hr class="qt-spacer-s"> {!! form::submit('post comment', array( 'class'=>'qt-btn qt-btn-primary qt-btn-xl' )) !!} {!! form::close() !!} getting mixed content error how can secure route?
add boot method of appserviceprovider. loads content on http on local development , https on production
$this->app['request']->server->set('https', $this->app->environment() != 'local'); and change environment production on production.
Comments
Post a Comment