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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user