{{action('controller @ post')}}未返回https。因此,表单无法提交。
已移动到新服务器,现在无法识别https问题。
{{ action('controller@post') }}
答案 0 :(得分:1)
action
助手使用下面的UrlGenerator
。
这个问题有多种解决方案。
1。
您可以通过运行来强制Laravel始终使用https
URL::forceScheme('https');
在您的AppServiceProvider
中。
2。
将APP_URL
中的.env
设置在https://
的前面。例如。
APP_ULR=https://example.org
3。
将scheme => 'https'
添加到路由中的组配置中。
Route::group([scheme => 'https']), function(Router $route) {
$route->get('secured_route')
}
4。
使用secure_url()
助手。它将始终生成一个https
网址。