a ton 👷♂️
This commit is contained in:
24
app/Models/ApplicationDeploymentQueue.php
Normal file
24
app/Models/ApplicationDeploymentQueue.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Contracts\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Spatie\SchemalessAttributes\Casts\SchemalessAttributes;
|
||||
|
||||
class ApplicationDeploymentQueue extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'application_id',
|
||||
'status',
|
||||
'metadata',
|
||||
];
|
||||
|
||||
public $casts = [
|
||||
'metadata' => SchemalessAttributes::class,
|
||||
];
|
||||
public function scopeWithExtraAttributes(): Builder
|
||||
{
|
||||
return $this->metadata->modelScope();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user