phpvms/app/Http/Resources/Fare.php

26 lines
547 B
PHP
Raw Normal View History

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
2020-03-03 06:38:48 +08:00
/**
* @mixin \App\Models\Fare
*/
class Fare extends Resource
{
public function toArray($request)
{
return [
2020-03-03 06:38:48 +08:00
'id' => $this->id,
'code' => $this->code,
'name' => $this->name,
'price' => $this->price,
2020-03-03 05:08:58 +08:00
'cost' => $this->cost,
'capacity' => $this->capacity,
'notes' => $this->notes,
'active' => $this->active,
];
}
}