|
|
@@ -158,7 +158,7 @@ class TestController extends Controller
|
|
|
public function test2()
|
|
|
{
|
|
|
ini_set('max_execution_time',-1);
|
|
|
- $myfile = fopen(base_path()."\\database\\data\\menus.data", "a+");
|
|
|
+ $myfile = @fopen(base_path()."/database/data/menus.data", "a+");
|
|
|
foreach (Menu::query()->get() as $menu){
|
|
|
$txt = "INSERT INTO menus";
|
|
|
$columns = "(";
|
|
|
@@ -174,7 +174,7 @@ class TestController extends Controller
|
|
|
}
|
|
|
fclose($myfile);
|
|
|
|
|
|
- $myfile = fopen(base_path()."\\database\\data\\authorities.data", "a+");
|
|
|
+ $myfile = @fopen(base_path()."/database/data/authorities.data", "a+");
|
|
|
foreach (Authority::query()->get() as $authority){
|
|
|
$txt = "INSERT INTO authorities";
|
|
|
$columns = "(";
|