From b9396b7f6827e7bde1237012ea80a7b3684278cf Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 17 Jul 2018 18:12:23 -0600 Subject: [PATCH] Update Status & StatusHashtag models to fix mass assignment bug --- app/Hashtag.php | 2 +- app/StatusHashtag.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Hashtag.php b/app/Hashtag.php index 497bc94ee..6314accc8 100644 --- a/app/Hashtag.php +++ b/app/Hashtag.php @@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model; class Hashtag extends Model { - protected $fillable = ['name','slug']; + public $fillable = ['name','slug']; public function posts() { diff --git a/app/StatusHashtag.php b/app/StatusHashtag.php index 7ceac0564..3d15b2036 100644 --- a/app/StatusHashtag.php +++ b/app/StatusHashtag.php @@ -6,5 +6,5 @@ use Illuminate\Database\Eloquent\Model; class StatusHashtag extends Model { - protected $fillable = ['status_id', 'hashtag_id']; + public $fillable = ['status_id', 'hashtag_id']; }