Using Eloquent Query Builder in Slim 3

I am still new with Slim 3 and Eloquent. Can somebody show me a simple example how to use Eloquent query builder in Slim 3.

Example -

$users = DB::table(‘users’)
->join(‘contacts’, ‘users.id’, ‘=’, ‘contacts.user_id’)
->join(‘orders’, ‘users.id’, ‘=’, ‘orders.user_id’)
->select(‘users.*’, ‘contacts.phone’, ‘orders.price’)
->get();

Thanks in advance

Never mind I have figured it out.