Some Error handling and acceptance tests
This commit is contained in:
@@ -16,4 +16,15 @@ class Trips extends Model
|
||||
{
|
||||
return $this->belongsToMany(Flights::class, 'trip_flights');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function toArray()
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user