Laravel Hasmany withsum ()

//Controller
$model = Model::withSum('relation', 'column_name');

//Blade
$sum = $model->ralation_sum_columnName;
Hasan Rahman