Skip to content

Commit

Permalink
v1.1.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Najm Njeim committed Feb 8, 2024
1 parent 79cd83e commit 10ca54b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to `country` will be documented in this file

### 1.1.30 - 2024-02-08
- Addition of the br, fr, hr, kr, pt locales @rinodrummer
- Addition of the install helper @rinodrummer
- Ability to define a custom database connection @rinodrummer

### 1.1.29 - 2023-12-18
- Addition of the croatian localisation by @mbanusic

Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ It can be consumed with the World Facade or the defined API routes.
### Installation

```bash
set APP_ENV=local
composer require nnjeim/world
```

set the ENV variable WORLD_DB_CONNECTION to the desired database connection (optional)

The `world:install` command is a helper to automate the installation process

```
php artisan world:install
```

The `world:install` command is an alias for the given installation process and is automatically contextualized with the right connection:

Optionally you can manually install the package by following the below steps:
```bash
php artisan vendor:publish --tag=world

Expand All @@ -22,8 +28,10 @@ php artisan migrate
php artisan db:seed --class=WorldSeeder # (requires ~15min)
```

### What's new in v1.1.29?
- Addition of the croatian localisation by @mbanusic
### What's new in v1.1.30?
- Addition of the br, fr, hr, kr, pt locales @rinodrummer
- Addition of the install helper @rinodrummer
- Ability to define a custom database connection @rinodrummer

### Changelog

Expand Down
Binary file added resources/.DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions src/Commands/InstallWorldData.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

namespace Nnjeim\World\Commands;

use Illuminate\Console\Command;
Expand All @@ -13,23 +13,23 @@ class InstallWorldData extends Command
* @var string
*/
protected $signature = 'world:install';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Install the world data';

/**
* Execute the console command.
*/
public function handle()
{
$this->info('Installing nnjeim/world...');

// publish migrations
Artisan::call('vendor:publish --tag=world');
Artisan::call('vendor:publish --tag=world --force');
// migrate new tables
Artisan::call('migrate');
// re-seed the world data
Expand Down

0 comments on commit 10ca54b

Please sign in to comment.