laravel import mysql dump data file into table code example
Example: import sql file from laravel
use Illuminate\Support\Facades\DB;
DB::unprepared(file_get_contents('PATH_TO_SQL'));
use Illuminate\Support\Facades\DB;
DB::unprepared(file_get_contents('PATH_TO_SQL'));