Skip to content

Commit

Permalink
Missing class.
Browse files Browse the repository at this point in the history
  • Loading branch information
danidou committed Apr 9, 2024
1 parent db52339 commit 22fdd10
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Http/Resources/Badgr/AssertionUserResource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Ctrlweb\BadgeFactor2\Http\Resources\Badgr;

use App\Http\Resources\LearnerPublicResource;
use Ctrlweb\BadgeFactor2\Models\User;
use Illuminate\Http\Resources\Json\JsonResource;

class AssertioUserResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
*
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
*/
public function toArray($request)
{
return [
'assertion_id' => $this['assertion_id'],
'user_id' => $this['user_id'],
'is_visible' => $this['is_visible'],
];
}
}

0 comments on commit 22fdd10

Please sign in to comment.