Laravel Hasmany Withsum ()
//Controller
$model = Model::withSum('relation', 'column_name');
//Blade
$sum = $model->ralation_sum_columnName;
Hasan Rahman
//Controller
$model = Model::withSum('relation', 'column_name');
//Blade
$sum = $model->ralation_sum_columnName;