22 lines
398 B
PHP
Raw Normal View History

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