1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-02 04:45:01 +03:00

22 lines
398 B
PHP

<?php namespace BookStack\Actions;
use BookStack\Model;
/**
* Class Attribute
* @package BookStack
*/
class Tag extends Model
{
protected $fillable = ['name', 'value', 'order'];
/**
* Get the entity that this tag belongs to
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public function entity()
{
return $this->morphTo('entity');
}
}