mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-01 16:42:41 +01:00
b80184cd93
Also fixed page create route broken in last commit
19 lines
367 B
PHP
19 lines
367 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');
|
|
}
|
|
} |