wip
This commit is contained in:
24
app/Models/Deployment.php
Normal file
24
app/Models/Deployment.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user