fixed contact media n+1 issue
This commit is contained in:
parent
ece0c27972
commit
d5ec767372
@ -26,6 +26,13 @@ class Contact extends Model
|
|||||||
|
|
||||||
protected $table = 'contacts';
|
protected $table = 'contacts';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The relationships that should always be loaded.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $with = ['media'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The accessors to append to the model's array form.
|
* The accessors to append to the model's array form.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user