Implement Keystone environment deployments
This commit is contained in:
29
app/Models/ServiceEndpoint.php
Normal file
29
app/Models/ServiceEndpoint.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\ServiceEndpointScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ServiceEndpoint extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'scope' => ServiceEndpointScope::class,
|
||||
];
|
||||
}
|
||||
|
||||
public function service(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Service::class);
|
||||
}
|
||||
|
||||
public function serviceReplica(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ServiceReplica::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user