mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Prevents the API From Lazy Loading
This commit is contained in:
parent
08e4acaf04
commit
f00c1a136b
@ -15,6 +15,8 @@ class ModResource extends JsonResource
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
$this->load(['users', 'versions', 'license']);
|
||||
|
||||
return [
|
||||
'type' => 'mod',
|
||||
'id' => $this->id,
|
||||
|
@ -15,6 +15,8 @@ class UserResource extends JsonResource
|
||||
*/
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
$this->load('role');
|
||||
|
||||
return [
|
||||
'type' => 'user',
|
||||
'id' => $this->id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user