Update Story Model

This commit is contained in:
Daniel Supernault 2019-01-12 12:38:09 -07:00
parent fe6f486914
commit d7d1303a63
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Model;
class Story extends Model
{
protected $visible = ['id'];
public function profile()
{
return $this->belongsTo(Profile::class);
}
public function items()
{
return $this->hasMany(StoryItem::class);