Update Story Model

pull/793/head
Daniel Supernault 6 years ago
parent fe6f486914
commit d7d1303a63
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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);

Loading…
Cancel
Save