Answers for "fetch all duplicate records in database laravel 8"

PHP
1

Laravel eloquent get data without duplicates

MyModel::distinct()->get(['column_name']);
Posted by: Guest on October-24-2021
1

laravel duplicate row

$data = Model::find(1);
$new_data = $data->replicate();
$new_data->created_at = now();
$new_data->save();
Posted by: Guest on July-03-2021

Code answers related to "fetch all duplicate records in database laravel 8"

Browse Popular Code Answers by Language