Files
thrillwiki_laravel/app/Models/SlugHistory.php

26 lines
448 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
class SlugHistory extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array<string>
*/
protected $fillable = [
'slug',
];
/**
* Get the parent sluggable model.
*/
public function sluggable(): MorphTo
{
return $this->morphTo();
}
}