@@ -17,6 +17,9 @@ |
||
17 | 17 | return $this->getTranslation($key, $this->getLocale()); |
18 | 18 | } |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $key |
|
22 | + */ |
|
20 | 23 | public function setAttribute($key, $value) |
21 | 24 | { |
22 | 25 | // Pass arrays and untranslatable attributes to the parent method. |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\Translatable; |
4 | 4 | |
5 | -use Illuminate\Support\Str; |
|
6 | 5 | use Illuminate\Support\Facades\Config; |
6 | +use Illuminate\Support\Str; |
|
7 | 7 | use Spatie\Translatable\Events\TranslationHasBeenSet; |
8 | 8 | use Spatie\Translatable\Exceptions\AttributeIsNotTranslatable; |
9 | 9 |