mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-27 19:06:23 +08:00
62342433f4
Also adde draw.io to attribution list. Closes #649
20 lines
368 B
PHP
20 lines
368 B
PHP
<?php namespace BookStack;
|
|
|
|
/**
|
|
* 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');
|
|
}
|
|
}
|