File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 7.1
4
+ - 7.2
5
5
6
6
before_script :
7
7
- travis_retry composer self-update
Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` qcod/laravel-settings ` will be documented in this file
4
4
5
+ ## 1.0.7 - 2019-09-05
6
+ - Laravel 6 support
7
+
8
+ ## 1.0.6 - 2019-08-01
9
+
10
+ - Organize settings into groups support
11
+
12
+ ## 1.0.5 - 2018-03-13
13
+
14
+ - added support for publishing migration folder
15
+
16
+ ## 1.0.4 - 2018-12-20
17
+
18
+ - added support for publishing migration folder
19
+
20
+ ## 1.0.3 - 2018-12-20
21
+
22
+ - added migration publishing support
23
+
5
24
## 1.0.2 - 2018-10-10
6
25
7
26
- Changed helper function and facade name, made them plural
Original file line number Diff line number Diff line change 18
18
}
19
19
],
20
20
"require" : {
21
- "php" : " >=5.6.0 " ,
22
- "laravel/framework" : " ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0"
21
+ "php" : " ^7.2 " ,
22
+ "laravel/framework" : " ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0 "
23
23
},
24
24
"require-dev" : {
25
- "orchestra/testbench" : " ~3.4" ,
25
+ "orchestra/testbench" : " ~3.4|^4.0 " ,
26
26
"mockery/mockery" : " ^0.9.4 || ~1.0" ,
27
- "phpunit/phpunit" : " ~7 .0"
27
+ "phpunit/phpunit" : " ^8 .0"
28
28
},
29
29
"autoload" : {
30
30
"classmap" : [
Original file line number Diff line number Diff line change 11
11
*/
12
12
function settings ($ key = null , $ default = null )
13
13
{
14
+ $ setting = app ()->make ('QCod\Settings\Setting\SettingStorage ' );
15
+
14
16
if (is_null ($ key )) {
15
- return app ()-> make ( ' QCod\Settings\Setting\SettingStorage ' ) ;
17
+ return $ setting ;
16
18
}
17
19
18
20
if (is_array ($ key )) {
19
- return app ()-> make ( ' QCod\Settings\Setting\SettingStorage ' ) ->set ($ key );
21
+ return $ setting ->set ($ key );
20
22
}
21
23
22
- return app ()-> make ( ' QCod\Settings\Setting\SettingStorage ' ) ->get ($ key , value ($ default ));
24
+ return $ setting ->get ($ key , value ($ default ));
23
25
}
24
26
}
You can’t perform that action at this time.
0 commit comments