Last active
October 15, 2022 22:14
-
-
Save resmall/51b328aa303b15979e77 to your computer and use it in GitHub Desktop.
Imports an sql file and execute the script in Laravel Seeder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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