예제 #1
0
 public function GetTableCanEdit()
 {
     $query = Identify::leftJoin('identify_table', function ($join) {
         $join->on('Identify.id_identify', '=', 'identify_table.id_identify');
     })->get(['Identify.id_identify', 'Identify.title', 'Identify.layername', 'Identify.layerid', 'Identify.display', 'Identify.description', 'Identify.key_', 'Identify.media', 'Identify.showattachments', 'identify_table.tablename']);
     // ->where('identify.id_identify','=',5)
     /* ->first([
            'identify.id_identify',
            'identify.layername',
            'identify_table.tablename'
        ]);*/
     return $query;
 }