Implement Keystone environment deployments
This commit is contained in:
31
app/Models/EnvironmentVariable.php
Normal file
31
app/Models/EnvironmentVariable.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Enums\EnvironmentVariableSource;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class EnvironmentVariable extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'value' => 'encrypted',
|
||||
'source' => EnvironmentVariableSource::class,
|
||||
'overridable' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
public function environment(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Environment::class);
|
||||
}
|
||||
|
||||
public function serviceSlice(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ServiceSlice::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user