芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Models/Event.php
hasMany(EventAttendee::class, 'event_id'); } public function getUsers() { $userArray = []; foreach ($this->attendee as $attendee) { array_push($userArray, $attendee->user()->select('id', 'email', 'name', 'email_notifications')->first()); } return collect($userArray); } public function files() { return $this->hasMany(EventFile::class, 'event_id')->orderBy('id', 'desc'); } }