Improvements: fix duplicate seeder, add missing seeders, remove redundant $with, add migration down(), optimize queries

This commit is contained in:
root
2026-06-08 18:33:24 +02:00
parent 9bb2e4246b
commit 6eeb85fcf2
9 changed files with 35 additions and 15 deletions
-4
View File
@@ -44,10 +44,6 @@ class WebsiteArticle extends Model
use BelongsToUser;
use HasSlug, \Illuminate\Database\Eloquent\Factories\HasFactory, SoftDeletes;
/** @var array<int, string> */
#[\Override]
protected $with = ['user'];
protected static function newFactory()
{
return WebsiteArticleFactory::new();
@@ -41,10 +41,6 @@ class WebsiteHelpCenterTicket extends Model
#[\Override]
protected $guarded = ['id', 'created_at', 'updated_at', 'user_id', 'status', 'subject', 'category_id'];
/** @var array<int, string> */
#[\Override]
protected $with = ['user', 'category'];
#[\Override]
public $timestamps = false;
-4
View File
@@ -13,10 +13,6 @@ class RadioShout extends Model
use BelongsToUser;
use HasFactory;
/** @var array<int, string> */
#[\Override]
protected $with = ['user'];
#[\Override]
protected $fillable = [
'user_id',