diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index fd4f39d..6cd745b 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -44,7 +44,7 @@ class HandleInertiaRequests extends Middleware 'first_name' => $request->user()->first_name, 'last_name' => $request->user()->last_name, 'email' => $request->user()->email, - 'role' => $request->user()->role, + 'owner' => $request->user()->owner, 'account' => [ 'id' => $request->user()->account->id, 'name' => $request->user()->account->name,