generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shorten namespace and remove unnecessary facade
- Loading branch information
Dilee
committed
May 14, 2023
1 parent
35a4ea3
commit 4e892aa
Showing
18 changed files
with
57 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/dilee/laravel-vietnamese-administrative-units/discussions/new?category=q-a | ||
url: https://github.com/dileedotdev/laravel-vietnamese-administrative-units/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/dilee/laravel-vietnamese-administrative-units/discussions/new?category=ideas | ||
url: https://github.com/dileedotdev/laravel-vietnamese-administrative-units/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/dilee/laravel-vietnamese-administrative-units/security/policy | ||
url: https://github.com/dileedotdev/laravel-vietnamese-administrative-units/security/policy | ||
about: Learn how to notify us for sensitive bugs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
// config for Dilee/VietnameseAdministrativeUnits | ||
// config for dileedotdev/laravel-vietnamese-administrative-units package | ||
return [ | ||
'province' => [ | ||
'model' => \Dilee\VietnameseAdministrativeUnits\Models\Province::class, | ||
'model' => \VietnameseAdministrativeUnits\Models\Province::class, | ||
'table' => 'provinces', | ||
], | ||
|
||
'district' => [ | ||
'model' => \Dilee\VietnameseAdministrativeUnits\Models\District::class, | ||
'model' => \VietnameseAdministrativeUnits\Models\District::class, | ||
'table' => 'districts', | ||
], | ||
|
||
'ward' => [ | ||
'model' => \Dilee\VietnameseAdministrativeUnits\Models\Ward::class, | ||
'model' => \VietnameseAdministrativeUnits\Models\Ward::class, | ||
'table' => 'wards', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
namespace Dilee\VietnameseAdministrativeUnits\Database\Factories; | ||
namespace VietnameseAdministrativeUnits\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class DistrictFactory extends Factory | ||
{ | ||
protected $model = \Dilee\VietnameseAdministrativeUnits\Models\District::class; | ||
protected $model = \VietnameseAdministrativeUnits\Models\District::class; | ||
|
||
public function definition() | ||
{ | ||
return [ | ||
'code' => $this->faker->unique()->randomNumber(2), | ||
'name' => $this->faker->unique()->words(asText: true), | ||
'province_id' => \Dilee\VietnameseAdministrativeUnits\Models\Province::factory(), | ||
'province_id' => \VietnameseAdministrativeUnits\Models\Province::factory(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
namespace Dilee\VietnameseAdministrativeUnits\Database\Factories; | ||
namespace VietnameseAdministrativeUnits\Database\Factories; | ||
|
||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
|
||
class WardFactory extends Factory | ||
{ | ||
protected $model = \Dilee\VietnameseAdministrativeUnits\Models\Ward::class; | ||
protected $model = \VietnameseAdministrativeUnits\Models\Ward::class; | ||
|
||
public function definition() | ||
{ | ||
return [ | ||
'code' => $this->faker->unique()->randomNumber(2), | ||
'name' => $this->faker->unique()->words(asText: true), | ||
'district_id' => \Dilee\VietnameseAdministrativeUnits\Models\District::factory(), | ||
'district_id' => \VietnameseAdministrativeUnits\Models\District::factory(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
use Dilee\VietnameseAdministrativeUnits\Tests\TestCase; | ||
use Illuminate\Foundation\Testing\RefreshDatabase; | ||
use VietnameseAdministrativeUnits\Tests\TestCase; | ||
|
||
uses(TestCase::class, RefreshDatabase::class)->in(__DIR__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters