mirror of
https://github.com/Cybrarist/Discount-Bandit.git
synced 2026-11-24 19:49:54 +01:00
- add Ajio test - add myntra test - add nykaa test - add snapdeal test - add tataCliq test Fixes: - fix amazon poland price only getting thousands. - fix single product store view. Enhancements: - add scroll to top page when page has changed. - change layout for product page. - preparing api for mobile application Took 7 hours 52 minutes
25 lines
514 B
PHP
25 lines
514 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\Api;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class StoreResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(Request $request): array
|
|
{
|
|
return [
|
|
"name"=>$this->name,
|
|
"domain"=>$this->domain,
|
|
"image"=>$this->image,
|
|
"currency_id"=>$this->currency_id
|
|
];
|
|
}
|
|
}
|