Created
November 6, 2018 07:01
-
-
Save olssonm/5bf049b4ec0ee0c6bbe5bb6251594ffa to your computer and use it in GitHub Desktop.
Import a SQL-file/dump in Laravel
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
<?php | |
use DB; | |
DB::unprepared(file_get_contents(storage_path('file.sql'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment