updates
This commit is contained in:
@@ -30,7 +30,8 @@ class Kernel extends ConsoleKernel
|
|||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
if (env('DB_INSTALL') == 1) {
|
if (env('DB_INSTALL') == 1) {
|
||||||
if ($this->getCurrentQueue() != "sync") {
|
|
||||||
|
if ($this->getCurrentQueue() != 'sync') {
|
||||||
$schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute();
|
$schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute();
|
||||||
}
|
}
|
||||||
$this->execute($schedule, 'fetching');
|
$this->execute($schedule, 'fetching');
|
||||||
|
@@ -108,7 +108,9 @@ class SettingsController extends Controller {
|
|||||||
$storage->upload();
|
$storage->upload();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function activate() {
|
|
||||||
|
public function activate()
|
||||||
|
{
|
||||||
if (!\Schema::hasColumn('ticket_attachment', 'driver')) {
|
if (!\Schema::hasColumn('ticket_attachment', 'driver')) {
|
||||||
$path = 'app'.DIRECTORY_SEPARATOR.'FaveoStorage'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.'migrations';
|
$path = 'app'.DIRECTORY_SEPARATOR.'FaveoStorage'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.'migrations';
|
||||||
Artisan::call('migrate', [
|
Artisan::call('migrate', [
|
||||||
|
@@ -327,13 +327,14 @@ class TemplateController extends Controller
|
|||||||
throw new Exception('Sorry! We can not find your request');
|
throw new Exception('Sorry! We can not find your request');
|
||||||
}
|
}
|
||||||
$to_address = [
|
$to_address = [
|
||||||
'name' => "",
|
|
||||||
'email' => $to
|
'name' => '',
|
||||||
|
'email' => $to,
|
||||||
];
|
];
|
||||||
$message = [
|
$message = [
|
||||||
'subject' => $subject,
|
'subject' => $subject,
|
||||||
'scenario' => null,
|
'scenario' => null,
|
||||||
'body' => $msg
|
'body' => $msg,
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->PhpMailController->sendmail($from, $to_address, $message, [], []);
|
$this->PhpMailController->sendmail($from, $to_address, $message, [], []);
|
||||||
|
Reference in New Issue
Block a user