add: full multi-tenancy control
This commit is contained in:
@@ -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)),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user