Skip to content

Commit e146a7e

Browse files
committed
added facade for Setting
1 parent 4a6db0b commit e146a7e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"laravel": {
4848
"providers": [
4949
"QCod\\AppSettings\\AppSettingsServiceProvider"
50-
]
50+
],
51+
"aliases": {
52+
"Setting": "QCod\\AppSettings\\Facade"
53+
}
5154
}
5255
},
5356
"scripts": {

src/Facade.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace QCod\AppSettings;
4+
5+
class Facade extends \Illuminate\Support\Facades\Facade
6+
{
7+
/**
8+
* {@inheritdoc}
9+
*/
10+
protected static function getFacadeAccessor()
11+
{
12+
return 'app-settings';
13+
}
14+
}

0 commit comments

Comments
 (0)