Skip to content

Commit d0d86fa

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into ft-rule-value-formatter
2 parents fee4be3 + cce61b3 commit d0d86fa

File tree

12 files changed

+65
-28
lines changed

12 files changed

+65
-28
lines changed

.circleci/config.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,30 @@ jobs:
7575
MYSQL_ALLOW_EMPTY_PASSWORD: true
7676
<<: *defaults
7777

78+
build-php73-laravel6:
79+
docker:
80+
- image: 'circleci/php:7.2'
81+
environment:
82+
LARAVEL_VERSION: '^6.0'
83+
- image: 'circleci/mysql:5.7'
84+
command: 'mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --innodb-large-prefix=true --innodb-file-format=Barracuda'
85+
environment:
86+
MYSQL_USER: 'root'
87+
MYSQL_ALLOW_EMPTY_PASSWORD: true
88+
<<: *defaults
89+
90+
build-php72-laravel6:
91+
docker:
92+
- image: 'circleci/php:7.2'
93+
environment:
94+
LARAVEL_VERSION: '^6.0'
95+
- image: 'circleci/mysql:5.7'
96+
command: 'mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --innodb-large-prefix=true --innodb-file-format=Barracuda'
97+
environment:
98+
MYSQL_USER: 'root'
99+
MYSQL_ALLOW_EMPTY_PASSWORD: true
100+
<<: *defaults
101+
78102
build-php73-laravel58:
79103
docker:
80104
- image: 'circleci/php:7.3'
@@ -187,7 +211,8 @@ workflows:
187211
version: 2
188212
build_all:
189213
jobs:
190-
- build-php73-laravel58
214+
- build-php73-laravel6
215+
- build-php72-laravel6
191216
- build-php72-laravel58
192217
- build-php72-laravel57
193218
- build-php72-laravel56

composer.json

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"name": "astrotomic/laravel-translatable",
33
"description": "A Laravel package for multilingual models",
4-
"keywords": ["laravel", "translation", "language", "database"],
4+
"keywords": [
5+
"laravel",
6+
"translation",
7+
"language",
8+
"database"
9+
],
510
"license": "MIT",
611
"authors": [
712
{
@@ -17,17 +22,25 @@
1722
"role": "Developer"
1823
}
1924
],
20-
"support": {
21-
"issues": "https://github.com/Astrotomic/laravel-translatable/issues"
22-
},
2325
"require": {
2426
"php": ">=7.1.3",
25-
"illuminate/contracts": "5.6.*|5.7.*|5.8.*",
26-
"illuminate/database": "5.6.*|5.7.*|5.8.*",
27-
"illuminate/support": "5.6.*|5.7.*|5.8.*"
27+
"illuminate/contracts": "5.6.* || 5.7.* || 5.8.* || ^6.0",
28+
"illuminate/database": "5.6.* || 5.7.* || 5.8.* || ^6.0",
29+
"illuminate/support": "5.6.* || 5.7.* || 5.8.* || ^6.0"
2830
},
2931
"require-dev": {
30-
"orchestra/testbench": "3.6.*|3.7.*|3.8.*"
32+
"orchestra/testbench": "3.6.* || 3.7.* || 3.8.* || ^4.0",
33+
"orchestra/testbench-core": "3.6.* || 3.7.* || 3.8.* || ^4.0"
34+
},
35+
"config": {
36+
"sort-packages": true
37+
},
38+
"extra": {
39+
"laravel": {
40+
"providers": [
41+
"Astrotomic\\Translatable\\TranslatableServiceProvider"
42+
]
43+
}
3144
},
3245
"autoload": {
3346
"psr-4": {
@@ -39,17 +52,12 @@
3952
"tests"
4053
]
4154
},
42-
"extra": {
43-
"laravel": {
44-
"providers": [
45-
"Astrotomic\\Translatable\\TranslatableServiceProvider"
46-
]
47-
}
48-
},
49-
"config": {
50-
"sort-packages": true
51-
},
5255
"scripts": {
5356
"csfix": "php-cs-fixer fix --using-cache=no"
57+
},
58+
"support": {
59+
"issues": "https://github.com/Astrotomic/laravel-translatable/issues",
60+
"source": "https://github.com/Astrotomic/laravel-translatable",
61+
"docs": "https://docs.astrotomic.info/laravel-translatable"
5462
}
5563
}

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ echo $post->translate('fr')->title; // Mon premier post
5959

6060
| Package | Laravel | PHP |
6161
| :--- | :--- | :--- |
62+
| **v11.4** | `5.6.* / 5.7.* / 5.8.* / 6.*` | `>=7.1.3` |
6263
| **v11.3** | `5.6.* / 5.7.* / 5.8.*` | `>=7.1.3` |
6364
| **v11.2** | `5.6.* / 5.7.* / 5.8.*` | `>=7.1.3` |
6465
| **v11.1** | `5.6.* / 5.7.* / 5.8.*` | `>=7.1.3` |

docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## v11
44

5+
### v11.4.0
6+
7+
* optimize translation by locale getter - [\#42](https://github.com/Astrotomic/laravel-translatable/pull/42)
8+
* add Laravel 6 support - [\#52](https://github.com/Astrotomic/laravel-translatable/pull/52)
9+
510
### v11.3.0
611

712
* Add `\Astrotomic\Translatable\Validation\RuleFactory` - [\#34](https://github.com/Astrotomic/laravel-translatable/pull/34)

docs/issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Issues
22

3-
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the package? Feel free to [create an issue on GitHub](https://github.com/spatie/enum/issues), we’ll try to address it as soon as possible.
3+
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the package? Feel free to [create an issue on GitHub](https://github.com/Astrotomic/laravel-translatable/issues), we’ll try to address it as soon as possible.
44

55
If you’ve found a bug regarding security please mail [[email protected]](mailto:[email protected]) instead of using the issue tracker.
66

docs/usage/forms.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ To achieve this structure in your form - to prevent manipulating the form data j
2020
<input type="text" name="de[title]" />
2121
```
2222

23-
24-

tests/LocalesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use Astrotomic\Translatable\Locales;
44

5-
class LocalesTest extends TestsBase
5+
final class LocalesTest extends TestsBase
66
{
77
public function test_singleton()
88
{

tests/ScopesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use Astrotomic\Translatable\Test\Model\Country;
44
use Astrotomic\Translatable\Test\Model\Vegetable;
55

6-
class ScopesTest extends TestsBase
6+
final class ScopesTest extends TestsBase
77
{
88
public function test_translated_in_scope_returns_only_translated_records_for_this_locale()
99
{

tests/TestCoreModelExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Astrotomic\Translatable\Test\Model\CityTranslation;
1212
use Astrotomic\Translatable\Test\Model\CountryTranslation;
1313

14-
class TestCoreModelExtension extends TestsBase
14+
final class TestCoreModelExtension extends TestsBase
1515
{
1616
// Saving
1717

tests/TestsBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Contracts\Console\Kernel;
55
use Astrotomic\Translatable\TranslatableServiceProvider;
66

7-
class TestsBase extends TestCase
7+
abstract class TestsBase extends TestCase
88
{
99
protected $queriesCount;
1010
protected static $db2Setup = false;

0 commit comments

Comments
 (0)