Improved the config system

This commit is contained in:
Graham Campbell
2016-01-29 22:49:06 +00:00
parent 51e850ddc2
commit 1b24cdb1c5
35 changed files with 188 additions and 232 deletions

View File

@@ -11,8 +11,8 @@
namespace CachetHQ\Cachet\Http\Middleware;
use CachetHQ\Cachet\Facades\Setting;
use Closure;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
class SetupAlreadyCompleted
@@ -27,7 +27,7 @@ class SetupAlreadyCompleted
*/
public function handle($request, Closure $next)
{
if (Setting::get('app_name')) {
if (Config::get('setting.app_name')) {
return Redirect::to('dashboard');
}