app/DataTables/MascotasDataTable.php
/**
     * Get the query object to be processed by dataTables.
     *
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Support\Collection
     */
Get the query object to be processed by dataTables.
Get the query object to be processed by dataTables .
public function query()
    {
	    $mascotas = Mascota::select();
	    return $this->applyScopes($mascotas);
    }
public function query ( ) { $ mascotas = Mascota :: select ( ) ; return $ this -> applyScopes ( $ mascotas ) ; }
Get the query object to be processed by dataTables.
Get the query object to be processed by dataTables .
//	    $docentes = Kardex::join('users as u', 'id_user', '=', 'u.id') //	                      ->select('u.id','name', 'ap_patern', 'ap_mother') //	                      ->where('user_type', '=', '2') //	                      ->get();