Skip to content

Commit

Permalink
Merge pull request #26 from EscolaLMS/fix/user-export-resource
Browse files Browse the repository at this point in the history
UserExportResource fix
  • Loading branch information
daVitekPL authored Aug 4, 2023
2 parents 5b6f4dc + 51f1b93 commit b18fe48
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Http/Resources/UserExportResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,16 @@

namespace EscolaLms\CsvUsers\Http\Resources;

use EscolaLms\Auth\Traits\ResourceExtandable;
use EscolaLms\CsvUsers\Models\Group;
use EscolaLms\CsvUsers\Models\User;
use EscolaLms\Auth\Models\User;
use EscolaLms\ModelFields\Enum\MetaFieldVisibilityEnum;
use EscolaLms\ModelFields\Facades\ModelFields;
use Illuminate\Http\Resources\Json\JsonResource;

class UserExportResource extends JsonResource
{
public function __construct(User $group)
public function __construct(User $user)
{
parent::__construct($group);
}

public function getResource(): Group
{
return $this->resource;
parent::__construct($user);
}

public function toArray($request): array
Expand Down

0 comments on commit b18fe48

Please sign in to comment.