13
Laravel Eloquentの作成と更新
新しいレコードを挿入したり、存在する場合は更新したりするための省略形は何ですか? <?php $shopOwner = ShopMeta::where('shopId', '=', $theID) ->where('metadataKey', '=', 2001)->first(); if ($shopOwner == null) { // Insert new record into database } else { // Update the existing record }