HTTPS 中的安全路由 Laravel

Secure route in HTTPS Laravel

在视图页面中我有这条路线:
<form action="{{ route('unisharp.lfm.upload') }}" role='form' id='uploadForm' name='uploadForm' method='post' enctype='multipart/form-data'>

使用 HTTPS 我得到 'mixed-content error'。我怎样才能获得安全路线?

使用 secure_url() 而不是 route(),这会将操作 URL 替换为安全操作。 Helper function - secure_url()