<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SettingW extends Model{ protected $connection = 'mysql_w'; protected $table='setting'; protected $guarded=[]; }