I have some functions for Mysql on test.sql file.
When I import this file on mysql from phpmyadmin everything is ok.
But I want import it dynamically from Laravel Seeder. When I use this on my seeder, does not import it on my Mysql.
public function run()
{
DB::unprepared(file_get_contents(base_path().'/myfolder/test.sql'));
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FvRNxS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire