芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/app/Http/Resources/UserResource.php
$this->id, 'name' => $this->name, 'email' => $this->email, 'phone' => $this->phone, 'role' => $this->role, 'contact_name' => $this->contact_name, 'company_name' => $this->company_name, 'website' => $this->website, 'enable_portal' => $this->enable_portal, 'currency_id' => $this->currency_id, 'facebook_id' => $this->facebook_id, 'google_id' => $this->google_id, 'github_id' => $this->github_id, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, 'avatar' => $this->avatar, 'is_owner' => $this->isOwner(), 'roles' => $this->roles, 'formatted_created_at' => $this->formattedCreatedAt, 'currency' => $this->when($this->currency()->exists(), function () { return new CurrencyResource($this->currency); }), 'companies' => $this->when($this->companies()->exists(), function () { return CompanyResource::collection($this->companies); }), ]; } }