belongsTo(Post::class); } /** * Get the organizer of the meeting (i.e. user or organization). * * @return void */ public function meetingable() { return $this->morphTo(); } /** * Get the organizer of the meeting (i.e. user or organization). * Accessor and alias of meetingable. * * @return void */ public function getOrganizerAttribute() { return $this->meetingable; } public function location() { return $this->morphOne(Location::class, 'locatable'); } /** * Get the transaction type for this meeting */ public function transactionType() { return $this->belongsTo(\App\Models\TransactionType::class, 'transaction_type_id'); } }