lasthourcloud/app/Models/ApplicationDeploymentQueue.php
Andras Bacsai 6e7ee0ca48 a ton 👷‍♂️
2023-05-24 14:26:50 +02:00

25 lines
528 B
PHP

<?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();
}
}