<?php namespace BookStack;
-use Illuminate\Database\Eloquent\Model;
abstract class Ownable extends Model
{
*/
public function createdBy()
{
- return $this->belongsTo('BookStack\User', 'created_by');
+ return $this->belongsTo(User::class, 'created_by');
}
/**
*/
public function updatedBy()
{
- return $this->belongsTo('BookStack\User', 'updated_by');
+ return $this->belongsTo(User::class, 'updated_by');
}
/**