1234567891011121314 |
- <?php
- namespace App\Models\ZBS;
- use App\Models\User;
- use Illuminate\Database\Eloquent\Model;
- class InteUser extends Model{
- protected $connection='mysql_zb';
- protected $table='inte_user';
- public function user(){
- return $this->hasOne(User::class,'id','user_id');
- }
- }
|