Rework admin panel and other

This commit is contained in:
F4ilji
2025-04-02 18:37:20 +05:00
parent 49072e50c7
commit 5cd6ff11b5
198 changed files with 9715 additions and 6664 deletions
+3 -3
View File
@@ -41,14 +41,14 @@ class Post extends Model
return $this->belongsTo(User::class, 'user_id');
}
public function seo()
public function seo(): MorphOne
{
return $this->morphOne(Seo::class, 'seoable');
}
public function mainSlider()
public function slide(): MorphOne
{
return $this->morphOne(MainSlider::class, 'slidable');
return $this->morphOne(Slide::class, 'slidable');
}
protected $casts = [