create a database and import sql file in laravel code example
Example 1: db import laravel
use Illuminate\Support\Facades\DB;
Example 2: import sql file from laravel
use Illuminate\Support\Facades\DB;
DB::unprepared(file_get_contents('PATH_TO_SQL'));