-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
231 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AirlinesServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-airlines'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-airlines'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Airline as AirlineModel; | ||
use Squire\Rule; | ||
|
||
class Airline extends Rule | ||
{ | ||
protected $message = 'squire-airlines::validation.airline'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return AirlineModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AirportsServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-airports'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-airports'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Airport as AirportModel; | ||
use Squire\Rule; | ||
|
||
class Airport extends Rule | ||
{ | ||
protected $message = 'squire-airports::validation.airport'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return AirportModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class ContinentsServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-continents'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-continents'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Continent as ContinentModel; | ||
use Squire\Rule; | ||
|
||
class Continent extends Rule | ||
{ | ||
protected $message = 'squire-continents::validation.continent'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return ContinentModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class CountriesServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-countries'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-countries'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Country as CountryModel; | ||
use Squire\Rule; | ||
|
||
class Country extends Rule | ||
{ | ||
protected $message = 'squire-countries::validation.country'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return CountryModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class CurrenciesServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-currencies'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-currencies'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Currency as CurrencyModel; | ||
use Squire\Rule; | ||
|
||
class Currency extends Rule | ||
{ | ||
protected $message = 'squire-currencies::validation.currency'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return CurrencyModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class GbCountiesServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-gb-counties'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-gb-counties'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\GbCounty as GbCountyModel; | ||
use Squire\Rule; | ||
|
||
class GbCounty extends Rule | ||
{ | ||
protected $message = 'squire-gb-counties::validation.gb_county'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return GbCountyModel::query(); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class RegionsServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'squire-regions'); | ||
|
||
$this->publishes([ | ||
__DIR__.'/../resources/lang' => resource_path('lang/vendor/squire-regions'), | ||
]); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Squire\Rules; | ||
|
||
use Squire\Models\Region as RegionModel; | ||
use Squire\Rule; | ||
|
||
class Region extends Rule | ||
{ | ||
protected $message = 'squire-regions::validation.region'; | ||
|
||
protected function getQueryBuilder() | ||
{ | ||
return RegionModel::query(); | ||
} | ||
} |