laravel málsnjall maður afrit met
// Retrieve the first task
$task = Task::first();
$newTask = $task->replicate();
$newTask->project_id = 16; // the new project_id
$newTask->save();
Laravel málsnjall maður fengið gögnin án afrit
MyModel::distinct()->get(['column_name']);