bencarter78 / odbc

MIT License
24 stars 17 forks source link

Call to undefined method TCK\Odbc\ODBCConnection::get() #8

Closed rafwell closed 7 years ago

rafwell commented 8 years ago

I dont know why but using the sample on readme: DB::connection('odbc')->get('TB_Item_ContratoCliente')->all() i've get this error: Call to undefined method TCK\Odbc\ODBCConnection::get().

Using the $connection in model work fine.

reno1979 commented 8 years ago

The documentation is not correct, try

DB::connection('odbc')->table('TB_Item_ContratoCliente')->get()->all();