Deal with languages and countries
/composer.json
"require": {
"instantia/local": ">=1.0"
},
"repositories": [
{"type": "vcs", "url": "https://instantia-data@bitbucket.org/instantia-data/local.git"}
]
/config/app.php
'providers' => [
/*
* Instantia Package Service Providers...
*/
###
Local\LocalServiceProvider::class,
###
],
before
App\Providers\RouteServiceProvider::class,
php artisan krud:publish local
/app/Providers/RouteServiceProvider.php
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
{
$this->mapApiRoutes();
$this->mapWebRoutes();
###
$this->mapLocalRoutes();
}
/**
* Define the routes for local package.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapLocalRoutes()
{
Route::prefix('')->namespace($this->namespace)
->group(base_path('routes/local.php'));
}