[ 'id' => (string)$this->id, 'type' => 'user', 'attributes' => [ 'name' => env('APP_DEMO') ? $faker->name : $this->name, 'email' => env('APP_DEMO') ? $faker->email : $this->email, 'avatar' => $this->avatar, 'role' => $this->role, 'storage' => $this->storage, 'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'), 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ] ] ]; } }