Learn or Die

生涯勉強。Macです。

2020-10-10から1日間の記事一覧

クエリビルダーやEloquentを使ったupdateの戻り値

使用サンプル $this->ary_customer['customerNo'], 'del_flg' => 0 ]) ->first() ->update([ 'password' => $ary_request['newpass'], 'edit_date' => Carbon::now() ]); //->first()を付けることで 、更新成否で条件分岐ができる if($result_update){ echo…