Enabled default routing
This commit is contained in:
@@ -40,4 +40,13 @@ class Zone extends Model
|
||||
{
|
||||
return $this->belongsTo(System::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default route for this zone
|
||||
*/
|
||||
public function systems()
|
||||
{
|
||||
return $this->belongsToMany(System::class)
|
||||
->withPivot(['default']);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user