@php $getData = explode('|',$add); $user = DB::table('users')->where('id','=',$getData[0])->get()->first(); $site = DB::connection('mysql_site_'.$getData[2])->table('sites')->where('id','=',$getData[1])->get()->first(); @endphp