update: use laravel attributes on user model

This commit is contained in:
Roardom
2023-08-06 02:14:30 +00:00
parent 40e86080c7
commit d7cf34b84a
14 changed files with 50 additions and 87 deletions
@@ -46,7 +46,7 @@ class TransactionController extends Controller
return view('user.transaction.create', [
'user' => $user,
'bon' => $user->getSeedbonus(),
'bon' => $user->formatted_seedbonus,
'activefl' => $user->personalFreeleeches()->exists(),
'items' => BonExchange::all(),
]);