-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServiceProvider.php
31 lines (26 loc) · 1.31 KB
/
ServiceProvider.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace CountryStateCity;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Illuminate\Database\Eloquent\Factory;
class ServiceProvider extends BaseServiceProvider
{
public function boot()
{
$this->publishes([
__DIR__ . '/database/migrations/2021_04_28_121647_create_timezones_table.php' => database_path('migrations/2021_04_28_121647_create_timezones_table.php'),
__DIR__ . '/database/migrations/2021_04_28_115030_create_countries_table.php' => database_path('migrations/2021_04_28_115030_create_countries_table.php'),
__DIR__ . '/database/migrations/2021_04_28_140621_create_country_timezones_table.php' => database_path('migrations/2021_04_28_140621_create_country_timezones_table.php'),
__DIR__ . '/database/migrations/2021_04_28_115040_create_states_table.php' => database_path('migrations/2021_04_28_115040_create_states_table.php'),
__DIR__ . '/database/migrations/2021_04_28_115058_create_cities_table.php' => database_path('migrations/2021_04_28_115058_create_cities_table.php'),
], 'countrystatecity-migrations');
if ($this->app->runningInConsole()) {
$this->commands([
Console\InitCommand::class,
]);
}
}
public function register()
{
//
}
}