import sql file from laravel
snippet in sql

import sql file from laravel

user3387

use Illuminate\Support\Facades\DB;

DB::unprepared(file_get_contents('PATH_TO_SQL'));