users
id int(10)
name varchar(255)
p_id int(10)
some_record
id int(10)
text varchar(35)
record_relation
some_record_id int(10)
user_id int (10)
or_id int(10)
dr_id int(10)
Relationship using attach method to be clear wanted their store some_record data inside record_relation. How this is possible please guide
Inside some_record model
public function RecordRelation() {
return $this->belongsToMany('App\Record', 'pivot_table');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire