mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00:00
23 lines
458 B
PHP
23 lines
458 B
PHP
<?php namespace BookStack\Actions;
|
|
|
|
use BookStack\Model;
|
|
|
|
/**
|
|
* Class Attribute
|
|
* @package BookStack
|
|
*/
|
|
class Tag extends Model
|
|
{
|
|
protected $fillable = ['name', 'value', 'order'];
|
|
protected $hidden = ['id', 'entity_id', 'entity_type'];
|
|
|
|
/**
|
|
* Get the entity that this tag belongs to
|
|
* @return \Illuminate\Database\Eloquent\Relations\MorphTo
|
|
*/
|
|
public function entity()
|
|
{
|
|
return $this->morphTo('entity');
|
|
}
|
|
}
|