<?php namespace App\Models; //use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Model; class UserZ extends Model{ // use SoftDeletes; protected $connection = 'mysql_z'; protected $table='user'; protected $guarded=[]; }