<?php namespace app\model; class Users extends base{ public function tourists (){ return $this->hasMany(UsersTourists::class,"uid"); } }