Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jan 10, 2021
1 parent f6eeed0 commit 7e7fa47
Show file tree
Hide file tree
Showing 14 changed files with 231 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/airlines/src/AirlinesServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/airlines/src/Rules/Airline.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/airports/src/AirportsServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/airports/src/Rules/Airport.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/continents/src/ContinentsServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/continents/src/Rules/Continent.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/countries/src/CountriesServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/countries/src/Rules/Country.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/currencies/src/CurrenciesServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/currencies/src/Rules/Currency.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/gb-counties/src/GbCountiesServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/gb-counties/src/Rules/GbCounty.php
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();
}
}
17 changes: 17 additions & 0 deletions packages/regions/src/RegionsServiceProvider.php
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'),
]);
}
}
16 changes: 16 additions & 0 deletions packages/regions/src/Rules/Region.php
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();
}
}

0 comments on commit 7e7fa47

Please sign in to comment.