File tree 8 files changed +7
-10
lines changed
8 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
/*
3
4
██████╗ ██╗ ██╗██████╗ ███╗ ███╗ ██████╗ ███╗ ██╗███████╗████████╗███████╗██████╗ ███████╗
4
5
██╔══██╗██║ ██║██╔══██╗ ████╗ ████║██╔═══██╗████╗ ██║██╔════╝╚══██╔══╝██╔════╝██╔══██╗██╔════╝
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpMonster \Worldwide \Database \Seeders ;
4
4
5
+ use Illuminate \Database \Seeder ;
5
6
use PhpMonster \Worldwide \Exceptions \InvalidCodeException ;
6
7
use PhpMonster \Worldwide \Models \City ;
7
8
use PhpMonster \Worldwide \Models \Country ;
8
9
use PhpMonster \Worldwide \Models \State ;
9
10
use PhpMonster \Worldwide \World ;
10
- use Illuminate \Database \Seeder ;
11
11
12
12
class BaseWorldSeeder extends Seeder
13
13
{
Original file line number Diff line number Diff line change @@ -8,15 +8,11 @@ class InstallWorldwideCommand extends Command
8
8
{
9
9
/**
10
10
* The name and signature of the console command.
11
- *
12
- * @var string
13
11
*/
14
12
protected string $ signature = 'worldwide:install ' ;
15
13
16
14
/**
17
15
* The console command description.
18
- *
19
- * @var string
20
16
*/
21
17
protected string $ description = 'Install php-monsters/laravel-worldwide package ' ;
22
18
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpMonster \Worldwide \Commands ;
4
4
5
- use PhpMonster \Worldwide \Worldwide ;
6
5
use Illuminate \Console \Command ;
6
+ use PhpMonster \Worldwide \Worldwide ;
7
7
8
8
class SeederWorldwideCommand extends Command
9
9
{
Original file line number Diff line number Diff line change 6
6
use Illuminate \Database \Eloquent \Model ;
7
7
use Illuminate \Database \Eloquent \Relations \HasMany ;
8
8
use Illuminate \Database \Eloquent \SoftDeletes ;
9
+
9
10
use function mb_strlen ;
10
11
11
12
/**
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpMonsters \Worldwide ;
4
4
5
- use PhpMonster \Worldwide \Exceptions \InvalidCodeException ;
6
- use PhpMonster \Worldwide \Exceptions \IsoCodesIsEmptyException ;
7
5
use Illuminate \Filesystem \Filesystem ;
8
6
use Illuminate \Support \Collection ;
9
7
use Illuminate \Support \Facades \Config ;
10
8
use Illuminate \Support \Facades \DB ;
11
9
use Illuminate \Support \Facades \File ;
12
10
use Illuminate \Support \Facades \Schema ;
13
11
use Illuminate \Support \Str ;
12
+ use PhpMonster \Worldwide \Exceptions \InvalidCodeException ;
13
+ use PhpMonster \Worldwide \Exceptions \IsoCodesIsEmptyException ;
14
14
15
15
class Worldwide
16
16
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpMonsters \Worldwide ;
4
4
5
- use PhpMonster \Worldwide \Commands \InstallWorldCommand ;
6
5
use PhpMonster \Worldwide \Commands \SeederWorldwideCommand ;
7
6
use Spatie \LaravelPackageTools \Package ;
8
7
use Spatie \LaravelPackageTools \PackageServiceProvider ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpMonster \Worldwide \Tests ;
4
4
5
- use PhpMonster \Worldwide \WorldServiceProvider ;
6
5
use Orchestra \Testbench \TestCase as Orchestra ;
6
+ use PhpMonster \Worldwide \WorldServiceProvider ;
7
7
8
8
class TestCase extends Orchestra
9
9
{
You can’t perform that action at this time.
0 commit comments