added date picker #681

This commit is contained in:
denisdulici
2018-12-24 11:01:00 +03:00
parent 57352840e2
commit 84db5ede76
4 changed files with 60 additions and 16 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Listeners\Updates;
use App\Events\UpdateFinished;
class Version135 extends Listener
{
const ALIAS = 'core';
const VERSION = '1.3.5';
/**
* Handle the event.
*
* @param $event
* @return void
*/
public function handle(UpdateFinished $event)
{
// Check if should listen
if (!$this->check($event)) {
return;
}
// Add financial year start to settings
setting(['general.financial_start' => Date::now()->startOfYear()->format('d F')]);
setting()->save();
}
}