3 namespace BookStack\References;
5 use Illuminate\Database\Eloquent\Model;
6 use Illuminate\Database\Eloquent\Relations\MorphTo;
9 * @property int $from_id
10 * @property string $from_type
11 * @property int $to_id
12 * @property string $to_type
14 class Reference extends Model
16 public $timestamps = false;
18 public function from(): MorphTo
20 return $this->morphTo('from');
23 public function to(): MorphTo
25 return $this->morphTo('to');