mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
added user adv listing page banner default
This commit is contained in:
parent
37d4319571
commit
077bc02a72
@ -3,6 +3,9 @@
|
||||
use Anomaly\FilesModule\Disk\Contract\DiskRepositoryInterface;
|
||||
use Anomaly\FilesModule\Folder\Contract\FolderRepositoryInterface;
|
||||
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Chumper\Zipper\Zipper;
|
||||
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
@ -57,6 +60,19 @@ class ProfileModuleSeeder extends Seeder
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
|
||||
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
|
||||
file_put_contents(__DIR__ . "/advListingPage.sql", fopen($repository . "advListingPage.sql", 'r'));
|
||||
file_put_contents("adv_listing_page.zip", fopen($repository . "adv_listing_page.zip", 'r'));
|
||||
$zipper = new Zipper();
|
||||
$zipper->make('adv_listing_page.zip')->folder('adv_listing_page')->extractTo(base_path() . '/public/app/default/files-module/local/adv_listing_page/');
|
||||
$zipper->close();
|
||||
|
||||
Model::unguard();
|
||||
DB::unprepared(file_get_contents(__DIR__ . '/advListingPage.sql'));
|
||||
Model::reguard();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user