Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Users extends Model
- {
- //
- public function token()
- {
- return $this->hasMany('App\Models\Token', 'id_user');
- }
- public function profile()
- {
- return $this->hasOne('App\Models\Profile', 'id_user');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement