From 3fa08f9084d1e7b8dd9502a187a48183af9be03d Mon Sep 17 00:00:00 2001 From: Diaa Fares Date: Wed, 3 Apr 2019 12:24:11 +0300 Subject: [PATCH] Fix for displayed Roles at Users grid --- app/User.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/User.php b/app/User.php index 8272241..ee0e739 100644 --- a/app/User.php +++ b/app/User.php @@ -13,6 +13,10 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac { use SoftDeletes, Authenticatable, Authorizable; + protected $casts = [ + 'owner' => 'boolean', + ]; + public function account() { return $this->belongsTo(Account::class);