Laravel Hasmany withSum ()

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

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