Skip to content

Instantly share code, notes, and snippets.

@resmall
Last active October 15, 2022 22:14
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save resmall/51b328aa303b15979e77 to your computer and use it in GitHub Desktop.
Save resmall/51b328aa303b15979e77 to your computer and use it in GitHub Desktop.
Imports an sql file and execute the script in Laravel Seeder
public function run() {
DB::unprepared(File::get('path/to/SQL/file'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment