add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Webkul\Admin\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ActivityParticipantResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @return array
*/
public function toArray($request)
{
return [
'user' => $this->when($this->user, new UserResource($this->user)),
'person' => $this->when($this->person, new PersonResource($this->person)),
];
}
}