2016-09-29 23 views

答えて

0

あなたがリクエストオブジェクト

class TestController extends Controller{ 
    public function yourMethodName(Request $request){ 
     $data=$request->except('fieldwhichyoudontwant1','fieldwhichyoudontwant2');//mention the fields you dont want 
        OR 
     $data=$request->only('fieldwhichyouwant1','fieldwhichyouwant2');//mention the fields you want only 
    } 
} 
を持つことになり、コントローラのメソッドで、この構文を使用します。
関連する問題