Answers for "update many laravel"

PHP
1

update many laravel

$post->comments()->updateMany([
    [
        'message' => 'A new comment.',
    ],
    [
        'message' => 'Another new comment.',
    ],
]);
Posted by: Guest on December-18-2020

Browse Popular Code Answers by Language