Updated isInstall() method
Updated inInstall herlper method to check value of install from config data as env(DB_INSTALL) returns null in some system
This commit is contained in:

committed by
Manish Verma

parent
2d90d56fcb
commit
f2070a93c6
@@ -40,7 +40,7 @@ class TicketFetch extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (env('DB_INSTALL') == 1) {
|
if (isInstall()) {
|
||||||
$controller = $this->mailController();
|
$controller = $this->mailController();
|
||||||
$emails = new \App\Model\helpdesk\Email\Emails();
|
$emails = new \App\Model\helpdesk\Email\Emails();
|
||||||
$settings_email = new \App\Model\helpdesk\Settings\Email();
|
$settings_email = new \App\Model\helpdesk\Settings\Email();
|
||||||
|
@@ -124,7 +124,7 @@ function isInstall()
|
|||||||
{
|
{
|
||||||
$check = false;
|
$check = false;
|
||||||
$env = base_path('.env');
|
$env = base_path('.env');
|
||||||
if (\File::exists($env) && env('DB_INSTALL') == 1) {
|
if (\File::exists($env) && \Config::get('database.install') == 1) {
|
||||||
$check = true;
|
$check = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user