forked from mirror/pixelfed
Update Bookmark model
This commit is contained in:
parent
884f675d30
commit
83d5fc404d
|
@ -6,5 +6,16 @@ use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
class Bookmark extends Model
|
class Bookmark extends Model
|
||||||
{
|
{
|
||||||
protected $fillable = ['profile_id', 'status_id'];
|
protected $fillable = ['profile_id', 'status_id'];
|
||||||
|
|
||||||
|
public function status()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Status::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function profile()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Profile::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue