This commit is contained in:
Andras Bacsai
2023-03-28 15:47:37 +02:00
parent 0b248e9be4
commit 4df66ebf00
24 changed files with 408 additions and 25 deletions

24
app/Models/Deployment.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Models\Activity;
class Deployment extends Model
{
protected $fillable = [
'uuid',
'type_id',
'type_type',
'activity_log_id',
];
public function type()
{
return $this->morphTo();
}
public function activity()
{
return $this->belongsTo(Activity::class, 'activity_log_id');
}
}