Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- id (ai)
- id (ai)
- owner = user.id
- id (ai)
- owner_id = bulletins.owner
- bulletin_id = bulletins.id // this I can't get user ID - don't know how.
- public function bulletin()
- {
- return $this->belongsTo('AppBulletins','bulletin_id');
- }
- public function users()
- {
- return $this->belongsTo('AppUser','owner_id');
- }
- owner_id = user.id and bulletin_id->owner = user.id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement