From 68174d011594ee1cabb97e88383e4939c2a0c9d2 Mon Sep 17 00:00:00 2001 From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com> Date: Thu, 11 Jan 2024 19:09:42 +0800 Subject: [PATCH] Update and rename MorningNews.php to Morningnews.php --- app/Models/{MorningNews.php => Morningnews.php} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename app/Models/{MorningNews.php => Morningnews.php} (74%) diff --git a/app/Models/MorningNews.php b/app/Models/Morningnews.php similarity index 74% rename from app/Models/MorningNews.php rename to app/Models/Morningnews.php index 5bb3d5b9..9a5b7f84 100644 --- a/app/Models/MorningNews.php +++ b/app/Models/Morningnews.php @@ -5,9 +5,11 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -class MorningNews extends Model +class Morningnews extends Model { use HasFactory; + protected $table='morning_news'; + protected $fillable = ['title', 'news_text']; }