Update StoryView model

This commit is contained in:
Daniel Supernault 2019-11-10 17:26:29 -07:00
parent 3b8fe9d574
commit b73823b11a
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class StoryView extends Model
{
public $fillable = ['story_id', 'profile_id'];
public function story()
{
return $this->belongsTo(Story::class);