|
@@ -6,5 +6,16 @@ use Illuminate\Database\Eloquent\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);
|
|
|
+ }
|
|
|
}
|