在我的视图页面中,我有这条路线:
{!! Form::open(['url' => 'forumcomment/' . $forum->slug, 'files'=>false, 'id' => 'qw-commentform' ,'class' => 'qt-clearfix']) !!} {!! Form::textarea('comment', null, ['class'=>'materialize-textarea', 'id'=>'my-editor', 'required'=>'required','aria-required'=>true]) !!} Comment* {!! Form::submit('Post Comment', array( 'class'=>'qt-btn qt-btn-primary qt-btn-xl' )) !!} {!! Form::close() !!}
混合内容错误如何获得安全路线?
将此添加到boot您的方法中AppServiceProvider.这在加载所有内容http的local开发和https上production
boot
AppServiceProvider
http
local
https
production
$this->app['request']->server->set('HTTPS', $this->app->environment() != 'local');
并随时更改您environment来production生产.
environment