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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -