22 lines
475 B
PHP
22 lines
475 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Resources;
|
||
|
|
||
|
use Illuminate\Http\Resources\Json\Resource;
|
||
|
|
||
|
class Fare extends Resource
|
||
|
{
|
||
|
public function toArray($request)
|
||
|
{
|
||
|
return [
|
||
|
'code' => $this->code,
|
||
|
'name' => $this->name,
|
||
|
'price' => $this->price,
|
||
|
'cost' => $this->code,
|
||
|
'capacity' => $this->capacity,
|
||
|
'notes' => $this->notes,
|
||
|
'active' => $this->active,
|
||
|
];
|
||
|
}
|
||
|
}
|