Strimoid/Strimoid

View on GitHub
app/Models/Vote.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Strimoid\Models;

use Strimoid\Models\Traits\HasUserRelationship;

class Vote extends BaseModel
{
    use HasUserRelationship;

    public const UPDATED_AT = null;

    public $incrementing = false;
    protected $primaryKey = null;

    protected static $unguarded = true;

    public function element()
    {
        return $this->morphTo();
    }
}