Check out example codes for "DB: in eloquent using sql". It will help you in understanding the concepts better.

Code Example 1

use Illuminate\Support\Facades\DB;

Code Example 2

$results = DB::select('select * from users where id = :id', ['id' => 1]);

Learn ReactJs, React Native from akashmittal.com