instancecache trait
This commit is contained in:
@@ -37,6 +37,12 @@ class Table extends Model
|
||||
use Reportable;
|
||||
protected $guarded = [];
|
||||
|
||||
/** Get owner from the instance cache (use when building table lists) */
|
||||
public function cachedOwner()
|
||||
{
|
||||
return User::getCached($this->owner_id);
|
||||
}
|
||||
|
||||
/** Owning user */
|
||||
public function owner()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user