Skip to content

Commit ad80a84

Browse files
authored
PHP 8 support and update/fixes language paths (#21)
* PHP 8 support and set language path with the Laravel helper function * Bug fix, method resourcePath in LaravelTranslationFileHelper.php is pointing to the wrong directory
1 parent e2fa3c6 commit ad80a84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"minimum-stability": "dev",
1313
"require": {
14-
"elementaryframework/fire-fs": "1.0.0"
14+
"elementaryframework/fire-fs": "1.2.2"
1515
},
1616
"autoload": {
1717
"psr-4": {

src/Console/Commands/Translation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function watch()
5757
$watcher = app('watcher');
5858
$watcher->setListener(new Listener())
5959
->setRecursive(true)
60-
->setPath('./resources/lang')
60+
->setPath(lang_path())
6161
->setWatchInterval(250)
6262
->build();
6363
$watcher->start();

src/LaravelTranslationFileHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function write(array $data)
3131
*/
3232
public function resourcePath()
3333
{
34-
return resource_path('lang');
34+
return lang_path();
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)