1
コントローラーでIDを選択し、次のものを選択するために+1を追加しようとしましたが、nullオブジェクトが返されます。誰かが+1 IDを選択する方法を知っていますか?結果は空にすることができますので、おかげで事前コントローラーの状態は次のIDを選択します
でたくさんここに私のコントローラ
//condition if checkbox is selected !
if($licencie_amateur->surclasser === true){
$licencie_amateur->lb_surclassement = ActiviteLicencie::where('catg_licence_id' , '=' , $categorie_age->id+1)->first();
}elseif ($licencie_amateur->surclasser === false){
// do nothing
}
ありがとう!それは今働いている!!!!!!!! –