1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Renamed attribute to tags & continued interface

Also fixed page create route broken in last commit
This commit is contained in:
Dan Brown
2016-05-13 21:20:21 +01:00
parent 1fa079b466
commit b80184cd93
18 changed files with 369 additions and 282 deletions

View File

@ -55,12 +55,12 @@ class Entity extends Ownable
}
/**
* Get the Attribute models that have been user assigned to this entity.
* Get the Tag models that have been user assigned to this entity.
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
*/
public function attributes()
public function tags()
{
return $this->morphMany(Attribute::class, 'entity');
return $this->morphMany(Tag::class, 'entity');
}
/**