1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Added reference handling on page actions

Page update/create/restore/clone/delete.
Added a couple of tests to cover a couple of those.
This commit is contained in:
Dan Brown
2022-08-17 17:37:27 +01:00
parent 3290ab3ac9
commit bbe504c559
4 changed files with 81 additions and 3 deletions

View File

@@ -14,6 +14,8 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
*/
class Reference extends Model
{
public $timestamps = false;
public function from(): MorphTo
{
return $this->morphTo('from');