File tree 1 file changed +3
-3
lines changed
src/Mariuzzo/LaravelJsLocalization
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ public function boot()
41
41
42
42
// Determines Laravel major version.
43
43
$ app = $ this ->app ;
44
- $ laravelMajorVersion = intval ( $ app ::VERSION ) ;
44
+ $ laravelMajorVersion = ( int ) $ app ::VERSION ;
45
45
46
- // Publishes Laravel-JS-Localization packag files and merge user and
46
+ // Publishes Laravel-JS-Localization package files and merge user and
47
47
// package configurations.
48
48
if ($ laravelMajorVersion === 4 ) {
49
49
$ config = $ this ->app ['config ' ]->get ($ configKey , []);
@@ -64,7 +64,7 @@ public function boot()
64
64
public function register ()
65
65
{
66
66
// Bind the Laravel JS Localization command into the app IOC.
67
- $ this ->app [ 'localization.js ' ] = $ this -> app -> share ( function ($ app ) {
67
+ $ this ->app -> singleton ( 'localization.js ' , function ($ app ) {
68
68
$ files = $ app ['files ' ];
69
69
$ langs = $ app ['path.base ' ].'/resources/lang ' ;
70
70
$ messages = $ app ['config ' ]->get ('localization-js.messages ' );
You can’t perform that action at this time.
0 commit comments