invoiceninja/app/Utils/Traits/AppSetup.php
David Bomba 4c23d43138
Working on Setup workflow (#3509)
* Refactor designs to remove whitespace

* enable dummy data for templating

* Insert faker data into templates

* Fixes for user deletion

* Documentation on User controller:

* Working on app setup

* Files for app setup

* Working on Setup

* Final fixes for setup controller

* Fixes for setup

* Fixes for first install

* Minor fixes
2020-03-18 20:40:15 +11:00

30 lines
600 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com)
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Utils\Traits;
use App\Utils\Ninja;
use App\Utils\SystemHealth;
trait AppSetup
{
public function checkAppSetup()
{
if(Ninja::isNinja()) // Is this the invoice ninja production system?
return true;
return SystemHealth::check()['system_health']; // Do the system tests pass?
}
}