$this->uuid, 'name' => $this->name, 'path' => $this->path, 'user' => $this->user, 'created_at' => date("d.m.Y", strtotime($this->created_at)), ]; } public function user() { return $this->belongsTo(User::class); } public function albums() { return $this->belongsToMany(Album::class)->withTimestamps(); } }