Skip to content

Commit

Permalink
Add ID column to fare #608
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Mar 2, 2020
1 parent f1902a5 commit dcf9f48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/Http/Resources/Fare.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

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,
Expand Down
11 changes: 6 additions & 5 deletions app/Models/Fare.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
use App\Contracts\Model;

/**
* Class Fare
*
* @property int capacity
* @property string name
* @property float cost
* @property float price
* @property mixed code
* @property mixed count Only when merged with pivot
* @property int code
* @property int capacity
* @property int count Only when merged with pivot
* @property string notes
* @property bool active
*/
class Fare extends Model
{
Expand Down

0 comments on commit dcf9f48

Please sign in to comment.