import db class in laravel code example Example: db import laravel use Illuminate\Support\Facades\DB;