Skip to content

Commit

Permalink
Actualizar BinResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Perafan18 authored Sep 4, 2024
1 parent 4aa7953 commit d9c6c6c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/Http/Resources/BinResource.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class BinResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'bin' => $this->bin,
'type' => $this->type,
'brand' => $this->brand,
'bank' => $this->bank,
'country' => $this->country,
'provider' => $this->provider,
];
}
}

0 comments on commit d9c6c6c

Please sign in to comment.