init
This commit is contained in:
15
app/Api/Resources/UserSearchCollection.php
Normal file
15
app/Api/Resources/UserSearchCollection.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Api\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\ResourceCollection;
|
||||
|
||||
class UserSearchCollection extends ResourceCollection
|
||||
{
|
||||
public function toArray($request)
|
||||
{
|
||||
return $this->collection->map(function ($user) {
|
||||
return new UserSearchResource($user);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user