Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document title and subheading feature some changes..
- Loading branch information
1 parent
af8ba97
commit 09baf19
Showing
6 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters