Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel wherin softdelete

ModelName::whereIn('id', [array of ids])
           ->update(['deleted_at' => now()]);

DB::table('table_name')->whereIn('id', [array of ids])
            ->update([
                'deleted_at' => now()
            ]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #wherin #softdelete
ADD COMMENT
Topic
Name
5+7 =