Laravel请求:在默认请求中,始终返回所需的post字段
有人知道这个问题吗?我使用的是Laravel5.2,这个错误今天开始随机出现。无论何时,只要有带有basic Request$Request的表单,在没有任何验证的情况下,它总是返回“post字段是必需的” app\Http\Requests\Request.php文件未被触及。Laravel请求:在默认请求中,始终返回所需的post字段,laravel,request,Laravel,Request,有人知道这个问题吗?我使用的是Laravel5.2,这个错误今天开始随机出现。无论何时,只要有带有basic Request$Request的表单,在没有任何验证的情况下,它总是返回“post字段是必需的” app\Http\Requests\Request.php文件未被触及。 namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; abstract class Request extends For
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
abstract class Request extends FormRequest
{
//
}
我不知道这是什么原因,也不知道如何解决
控制器方法
public function updateSocial(Request $request)
{
$this->member->profile()->update([
'facebook_profile' => $request->facebook_profile,
'twitter_profile' => $request->twitter_profile,
'steam_profile' => $request->steam_profile,
]);
return redirect()->back()->withSuccess('Information updated');
}
向我们展示提交此表单时执行的控制器函数。已更新,很抱歉更新太晚。已修复,由错误放置的路由导致的问题