Merge pull request #102 from openclassify/vedat

files directory seeder fixed
This commit is contained in:
Fatih Alp 2019-10-11 19:19:26 +03:00 committed by GitHub
commit 8b8ebc848c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 17 deletions

View File

@ -42,23 +42,6 @@ class AdvsModuleSeeder extends Seeder
*/
public function run()
{
$disk = $this->disks->findBySlug('local');
$this->folders->create(
[
'en' => [
'name' => 'Favicon',
'description' => 'A folder for Favicon.',
],
'slug' => 'favicon',
'disk' => $disk,
'allowed_types' => [
'ico'
],
]
);
//Download demo SQL
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
file_put_contents(__DIR__."/demo.sql", fopen($repository."demo.sql", 'r'));

View File

@ -61,6 +61,22 @@ class ProfileModuleSeeder extends Seeder
]
);
$disk = $this->disks->findBySlug('local');
$this->folders->create(
[
'en' => [
'name' => 'Favicon',
'description' => 'A folder for Favicon.',
],
'slug' => 'favicon',
'disk' => $disk,
'allowed_types' => [
'ico'
],
]
);
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";