I\'m new to laravel and I\'m trying to access the raw PDO instance referring to this doc http://laravel.com/docs/5.0/database#accessing-connections by using this code DB::
DB::
You need either to reference it as \DB or add a use DB; at the top of your controller.
\DB
use DB;