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