'datetime', 'ledger_sequence' => 'integer', ]; public function poll() { return $this->belongsTo(Poll::class); } /** * The active profile that voted (user, organization, bank or admin). */ public function voter() { return $this->morphTo(); } /** * The user behind the voting profile. */ public function user() { return $this->belongsTo(User::class); } public function answers() { return $this->hasMany(PollAnswer::class); } }