Add ID column to fare #608
This commit is contained in:
@@ -4,11 +4,15 @@ namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\Resource;
|
||||
|
||||
/**
|
||||
* @mixin \App\Models\Fare
|
||||
*/
|
||||
class Fare extends Resource
|
||||
{
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'code' => $this->code,
|
||||
'name' => $this->name,
|
||||
'price' => $this->price,
|
||||
|
||||
Reference in New Issue
Block a user