mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-07 13:56:05 -06:00
Merge pull request #515 from openclassify/fatihalp
Remove districts and neighborhoods on standard installation
This commit is contained in:
commit
8f5c3c03cf
@ -7,7 +7,7 @@
|
|||||||
<span class="text-dark" class="text-dark">
|
<span class="text-dark" class="text-dark">
|
||||||
{{ trans('visiosoft.theme.base::field.company_directory') }}
|
{{ trans('visiosoft.theme.base::field.company_directory') }}
|
||||||
</span>
|
</span>
|
||||||
</a>s
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="categories-list-li category-icon border-bottom-0 mt-0">
|
<li class="categories-list-li category-icon border-bottom-0 mt-0">
|
||||||
<img src="{{ img('visiosoft.theme.base::images/popular-ads.png').url }}" class="img-responsive">
|
<img src="{{ img('visiosoft.theme.base::images/popular-ads.png').url }}" class="img-responsive">
|
||||||
|
|||||||
@ -22,15 +22,11 @@ class LocationModuleSeeder extends Seeder
|
|||||||
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
|
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
|
||||||
file_put_contents(__DIR__ . "/countries.sql", fopen($repository . "countries.sql", 'r'));
|
file_put_contents(__DIR__ . "/countries.sql", fopen($repository . "countries.sql", 'r'));
|
||||||
file_put_contents(__DIR__ . "/cities.sql", fopen($repository . "cities.sql", 'r'));
|
file_put_contents(__DIR__ . "/cities.sql", fopen($repository . "cities.sql", 'r'));
|
||||||
file_put_contents(__DIR__ . "/districts.sql", fopen($repository . "districts.sql", 'r'));
|
|
||||||
file_put_contents(__DIR__ . "/neighborhoods.sql", fopen($repository . "neighborhoods.sql", 'r'));
|
|
||||||
|
|
||||||
/* Demo Start */
|
/* Demo Start */
|
||||||
Model::unguard();
|
Model::unguard();
|
||||||
DB::unprepared(file_get_contents(__DIR__ . '/countries.sql'));
|
DB::unprepared(file_get_contents(__DIR__ . '/countries.sql'));
|
||||||
DB::unprepared(file_get_contents(__DIR__ . '/cities.sql'));
|
DB::unprepared(file_get_contents(__DIR__ . '/cities.sql'));
|
||||||
DB::unprepared(file_get_contents(__DIR__ . '/districts.sql'));
|
|
||||||
DB::unprepared(file_get_contents(__DIR__ . '/neighborhoods.sql'));
|
|
||||||
Model::reguard();
|
Model::reguard();
|
||||||
/* Demo Stop*/
|
/* Demo Stop*/
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user