instancecache trait

This commit is contained in:
2018-07-22 16:07:27 +02:00
parent a3ba68ea98
commit 3b123d7f08
5 changed files with 75 additions and 30 deletions
+6
View File
@@ -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()
{