<?php namespace BookStack;
+use BookStack\Auth\User;
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');
}
/**
{
return strtolower(array_slice(explode('\\', static::class), -1, 1)[0]);
}
-
-}
\ No newline at end of file
+}