File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ $ composer require qcod/laravel-app-settings
22
22
``` php
23
23
'providers' => [
24
24
//...
25
- QCod\AppSettings\AppSettingsServiceProvider::class
25
+ QCod\AppSettings\AppSettingsServiceProvider::class,
26
26
]
27
27
28
28
'aliases' => [
Original file line number Diff line number Diff line change 49
49
" QCod\\ AppSettings\\ AppSettingsServiceProvider"
50
50
],
51
51
"aliases" : {
52
- "Setting " : " QCod\\ AppSettings\\ Facade"
52
+ "AppSettings " : " QCod\\ AppSettings\\ Facade"
53
53
}
54
54
}
55
55
},
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ public function boot()
42
42
*/
43
43
public function register ()
44
44
{
45
+ // register setting service provider
46
+ $ this ->app ->register ('QCod\Settings\SettingsServiceProvider ' );
47
+
45
48
// bind app settings
46
49
$ this ->app ->singleton ('app-settings ' , function ($ app ) {
47
50
return new AppSettings ($ app ->make ('QCod\Settings\Setting\SettingStorage ' ));
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ public function it_can_call_accessor_on_setting_via_class_handle_method()
303
303
*/
304
304
public function it_can_access_settings_via_facade ()
305
305
{
306
- \Setting ::set ('app_maker ' , 'apple ' );
307
- $ this ->assertEquals ('apple ' , \Setting ::get ('app_maker ' ));
306
+ \AppSettings ::set ('app_maker ' , 'apple ' );
307
+ $ this ->assertEquals ('apple ' , \AppSettings ::get ('app_maker ' ));
308
308
}
309
309
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ protected function getPackageProviders($app)
38
38
protected function getPackageAliases ($ app )
39
39
{
40
40
return [
41
- 'Setting ' => 'QCod\Settings\Facade '
41
+ 'AppSettings ' => 'QCod\Settings\Facade '
42
42
];
43
43
}
44
44
You can’t perform that action at this time.
0 commit comments