Document title and subheading feature some changes..

This commit is contained in:
Cüneyt Şentürk
2023-08-14 15:36:38 +03:00
parent af8ba9726f
commit 09baf1991f
6 changed files with 72 additions and 26 deletions

View File

@@ -0,0 +1,43 @@
<?php
namespace App\Listeners\Update\V30;
use App\Abstracts\Listeners\Update as Listener;
use App\Events\Install\UpdateFinished as Event;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
class Version3017 extends Listener
{
const ALIAS = 'core';
const VERSION = '3.0.17';
/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(Event $event)
{
if ($this->skipThisUpdate($event)) {
return;
}
Log::channel('stdout')->info('Updating to 3.0.17 version...');
$this->updateDatabase();
Log::channel('stdout')->info('Done!');
}
public function updateDatabase(): void
{
Log::channel('stdout')->info('Updating database...');
Artisan::call('migrate', ['--force' => true]);
Log::channel('stdout')->info('Database updated.');
}
}

View File

@@ -53,10 +53,10 @@ class Document extends Model
'contact_state',
'contact_zip_code',
'contact_city',
'notes',
'footer',
'title',
'subheading',
'notes',
'footer',
'parent_id',
'created_from',
'created_by',

View File

@@ -25,6 +25,7 @@ class Event extends Provider
'App\Listeners\Update\V30\Version3014',
'App\Listeners\Update\V30\Version3015',
'App\Listeners\Update\V30\Version3016',
'App\Listeners\Update\V30\Version3017',
],
'Illuminate\Auth\Events\Login' => [
'App\Listeners\Auth\Login',