public function getPermissionsAttribute($permissions) { return $permissions ? json_decode($permissions, true) : []; }