45
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class TemplateVersion extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
public function template(): BelongsTo { return $this->belongsTo(Template::class); }
|
||||
public function publisher(): BelongsTo { return $this->belongsTo(User::class, 'published_by'); }
|
||||
}
|
||||
Reference in New Issue
Block a user