Ability to rotate logs in system
This commit is contained in:
57
app/Console/Commands/Core/Cleanup.php
Normal file
57
app/Console/Commands/Core/Cleanup.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Core;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use App\Models\SystemLog;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class Cleanup extends Command
|
||||
{
|
||||
protected $signature = 'core:cleanup';
|
||||
|
||||
protected $description = 'Clean up any old logs';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
$rotationDate = $this->getRotationDate();
|
||||
|
||||
$rotated = SystemLog::query()
|
||||
->where('created_at', '<', $rotationDate)
|
||||
->delete();
|
||||
|
||||
$this->info('Rotated ' . $rotated . ' system logs!');
|
||||
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
|
||||
protected function getRotationDate(): Carbon
|
||||
{
|
||||
switch (setting('rotate_logs_after')) {
|
||||
case 'weeks-1':
|
||||
return now()->subWeek();
|
||||
break;
|
||||
case 'months-1':
|
||||
return now()->subMonth();
|
||||
break;
|
||||
case 'months-3':
|
||||
return now()->subMonths(3);
|
||||
break;
|
||||
case 'months-6':
|
||||
return now()->subMonths(6);
|
||||
break;
|
||||
case 'years-1':
|
||||
return now()->subYear();
|
||||
break;
|
||||
case 'years-2':
|
||||
return now()->subYears(2);
|
||||
break;
|
||||
case 'years-3':
|
||||
return now()->subYears(3);
|
||||
break;
|
||||
case 'years-4':
|
||||
return now()->subYears(4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace App\Console;
|
||||
|
||||
use App\Jobs\Core\Ping;
|
||||
use App\Console\Commands\Core\Css;
|
||||
use App\Console\Commands\Core\Cleanup;
|
||||
use App\Console\Commands\Core\Install;
|
||||
use App\Console\Commands\Core\CssBackup;
|
||||
use App\Console\Commands\Core\Synchronize;
|
||||
@@ -17,6 +18,7 @@ class Kernel extends ConsoleKernel
|
||||
CssBackup::class,
|
||||
Install::class,
|
||||
Synchronize::class,
|
||||
Cleanup::class,
|
||||
];
|
||||
|
||||
protected function schedule(Schedule $schedule)
|
||||
@@ -24,5 +26,7 @@ class Kernel extends ConsoleKernel
|
||||
$schedule->call(function () {
|
||||
dispatch(new Ping())->delay(now()->addMinutes(rand(1, 30)));
|
||||
})->dailyAt('02:00');
|
||||
|
||||
$schedule->command('core:cleanup')->daily();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ class SettingController extends Controller
|
||||
'isolate_per_site_per_user' => setting('isolate_per_site_per_user'),
|
||||
'enable_api' => setting('enable_api'),
|
||||
'api_token' => setting('api_token') ? decrypt(setting('api_token')) : null,
|
||||
'rotate_logs_after' => setting('rotate_logs_after') ? setting('rotate_logs_after') : null,
|
||||
'default_language' => setting('default_language', 'en')
|
||||
];
|
||||
|
||||
@@ -51,7 +52,8 @@ class SettingController extends Controller
|
||||
'isolate_per_site_per_user',
|
||||
'enable_api',
|
||||
'api_token',
|
||||
'default_language'
|
||||
'default_language',
|
||||
'rotate_logs_after',
|
||||
]) as $key => $value) {
|
||||
if ($key === 'api_token') {
|
||||
$value = encrypt($value);
|
||||
|
||||
@@ -18,18 +18,13 @@ class SystemController extends Controller
|
||||
|
||||
$version = (new VersionChecker)->getVersions();
|
||||
|
||||
$horizonRunning = true;
|
||||
if (!$masterSupervisorRepository->all()) {
|
||||
$horizonRunning = false;
|
||||
}
|
||||
|
||||
return inertia('Admin/System', [
|
||||
'version' => [
|
||||
'out_of_date' => $version->isOutOfDate(),
|
||||
'current' => $version->currentVersion,
|
||||
'remote' => $version->remoteVersion
|
||||
],
|
||||
'horizonRunning' => $horizonRunning
|
||||
'horizonRunning' => !!$masterSupervisorRepository->all()
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
178
composer.lock
generated
178
composer.lock
generated
@@ -518,16 +518,16 @@
|
||||
},
|
||||
{
|
||||
"name": "dompdf/dompdf",
|
||||
"version": "v1.0.2",
|
||||
"version": "v1.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dompdf/dompdf.git",
|
||||
"reference": "8768448244967a46d6e67b891d30878e0e15d25c"
|
||||
"reference": "aa594c1cdbcdab04977fdd0fff669a017fb50ef4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/8768448244967a46d6e67b891d30878e0e15d25c",
|
||||
"reference": "8768448244967a46d6e67b891d30878e0e15d25c",
|
||||
"url": "https://api.github.com/repos/dompdf/dompdf/zipball/aa594c1cdbcdab04977fdd0fff669a017fb50ef4",
|
||||
"reference": "aa594c1cdbcdab04977fdd0fff669a017fb50ef4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -549,11 +549,6 @@
|
||||
"ext-zlib": "Needed for pdf stream compression"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-develop": "0.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Dompdf\\": "src/"
|
||||
@@ -584,9 +579,9 @@
|
||||
"homepage": "https://github.com/dompdf/dompdf",
|
||||
"support": {
|
||||
"issues": "https://github.com/dompdf/dompdf/issues",
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v1.0.2"
|
||||
"source": "https://github.com/dompdf/dompdf/tree/v1.1.0"
|
||||
},
|
||||
"time": "2021-01-08T14:18:52+00:00"
|
||||
"time": "2021-11-16T18:39:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dragonmantank/cron-expression",
|
||||
@@ -1470,16 +1465,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v8.68.1",
|
||||
"version": "v8.72.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "abe985ff1fb82dd04aab03bc1dc56e83fe61a59f"
|
||||
"reference": "5168f8589195a5f48b9c41ad2eec77a6c15f14f3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/abe985ff1fb82dd04aab03bc1dc56e83fe61a59f",
|
||||
"reference": "abe985ff1fb82dd04aab03bc1dc56e83fe61a59f",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/5168f8589195a5f48b9c41ad2eec77a6c15f14f3",
|
||||
"reference": "5168f8589195a5f48b9c41ad2eec77a6c15f14f3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1556,12 +1551,12 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"aws/aws-sdk-php": "^3.198.1",
|
||||
"doctrine/dbal": "^2.13.3|^3.1.2",
|
||||
"doctrine/dbal": "^2.13.3|^3.1.4",
|
||||
"filp/whoops": "^2.14.3",
|
||||
"guzzlehttp/guzzle": "^6.5.5|^7.0.1",
|
||||
"league/flysystem-cached-adapter": "^1.0",
|
||||
"mockery/mockery": "^1.4.4",
|
||||
"orchestra/testbench-core": "^6.23",
|
||||
"orchestra/testbench-core": "^6.27",
|
||||
"pda/pheanstalk": "^4.0",
|
||||
"phpunit/phpunit": "^8.5.19|^9.5.8",
|
||||
"predis/predis": "^1.1.9",
|
||||
@@ -1570,7 +1565,7 @@
|
||||
"suggest": {
|
||||
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.198.1).",
|
||||
"brianium/paratest": "Required to run tests in parallel (^6.0).",
|
||||
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.2).",
|
||||
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.13.3|^3.1.4).",
|
||||
"ext-bcmath": "Required to use the multiple_of validation rule.",
|
||||
"ext-ftp": "Required to use the Flysystem FTP driver.",
|
||||
"ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().",
|
||||
@@ -1591,7 +1586,7 @@
|
||||
"phpunit/phpunit": "Required to use assertions and run tests (^8.5.19|^9.5.8).",
|
||||
"predis/predis": "Required to use the predis connector (^1.1.9).",
|
||||
"psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).",
|
||||
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0|^5.0|^6.0).",
|
||||
"pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0|^5.0|^6.0|^7.0).",
|
||||
"symfony/cache": "Required to PSR-6 cache bridge (^5.1.4).",
|
||||
"symfony/filesystem": "Required to enable support for relative symbolic links (^5.1.4).",
|
||||
"symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).",
|
||||
@@ -1638,7 +1633,7 @@
|
||||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2021-10-27T12:31:46+00:00"
|
||||
"time": "2021-11-17T15:15:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/horizon",
|
||||
@@ -1719,16 +1714,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/serializable-closure",
|
||||
"version": "v1.0.3",
|
||||
"version": "v1.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/serializable-closure.git",
|
||||
"reference": "6cfc678735f22ccedad761b8cae2bab14c3d8e5b"
|
||||
"reference": "8148e72e6c2c3af7f05640ada1b26c3bca970f8d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/6cfc678735f22ccedad761b8cae2bab14c3d8e5b",
|
||||
"reference": "6cfc678735f22ccedad761b8cae2bab14c3d8e5b",
|
||||
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/8148e72e6c2c3af7f05640ada1b26c3bca970f8d",
|
||||
"reference": "8148e72e6c2c3af7f05640ada1b26c3bca970f8d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1774,7 +1769,7 @@
|
||||
"issues": "https://github.com/laravel/serializable-closure/issues",
|
||||
"source": "https://github.com/laravel/serializable-closure"
|
||||
},
|
||||
"time": "2021-10-07T14:00:57+00:00"
|
||||
"time": "2021-11-16T17:01:57+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/tinker",
|
||||
@@ -1846,16 +1841,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/ui",
|
||||
"version": "v3.3.0",
|
||||
"version": "v3.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/ui.git",
|
||||
"reference": "07d725813350c695c779382cbd6dac0ab8665537"
|
||||
"reference": "28f3d190fe270b6dcd6fdab4a77a392e693ceca5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/ui/zipball/07d725813350c695c779382cbd6dac0ab8665537",
|
||||
"reference": "07d725813350c695c779382cbd6dac0ab8665537",
|
||||
"url": "https://api.github.com/repos/laravel/ui/zipball/28f3d190fe270b6dcd6fdab4a77a392e693ceca5",
|
||||
"reference": "28f3d190fe270b6dcd6fdab4a77a392e693ceca5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1898,9 +1893,9 @@
|
||||
"ui"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/laravel/ui/tree/v3.3.0"
|
||||
"source": "https://github.com/laravel/ui/tree/v3.3.2"
|
||||
},
|
||||
"time": "2021-05-25T16:45:33+00:00"
|
||||
"time": "2021-11-05T08:25:44+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
@@ -2497,16 +2492,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "2.53.1",
|
||||
"version": "2.54.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||
"reference": "f4655858a784988f880c1b8c7feabbf02dfdf045"
|
||||
"reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f4655858a784988f880c1b8c7feabbf02dfdf045",
|
||||
"reference": "f4655858a784988f880c1b8c7feabbf02dfdf045",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/eed83939f1aed3eee517d03a33f5ec587ac529b5",
|
||||
"reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2517,6 +2512,7 @@
|
||||
"symfony/translation": "^3.4 || ^4.0 || ^5.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/dbal": "^2.0 || ^3.0",
|
||||
"doctrine/orm": "^2.7",
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"kylekatarnls/multi-tester": "^2.0",
|
||||
@@ -2587,7 +2583,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-09-06T09:29:23+00:00"
|
||||
"time": "2021-11-01T21:22:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nette/schema",
|
||||
@@ -2738,16 +2734,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v4.13.0",
|
||||
"version": "v4.13.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "50953a2691a922aa1769461637869a0a2faa3f53"
|
||||
"reference": "63a79e8daa781cac14e5195e63ed8ae231dd10fd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/50953a2691a922aa1769461637869a0a2faa3f53",
|
||||
"reference": "50953a2691a922aa1769461637869a0a2faa3f53",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/63a79e8daa781cac14e5195e63ed8ae231dd10fd",
|
||||
"reference": "63a79e8daa781cac14e5195e63ed8ae231dd10fd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2788,9 +2784,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.13.0"
|
||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.13.1"
|
||||
},
|
||||
"time": "2021-09-20T12:20:58+00:00"
|
||||
"time": "2021-11-03T20:52:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "opis/closure",
|
||||
@@ -3336,20 +3332,20 @@
|
||||
},
|
||||
{
|
||||
"name": "psr/container",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/php-fig/container.git",
|
||||
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
|
||||
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
|
||||
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
|
||||
"url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
|
||||
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.0"
|
||||
"php": ">=7.4.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@@ -3378,9 +3374,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/php-fig/container/issues",
|
||||
"source": "https://github.com/php-fig/container/tree/1.1.1"
|
||||
"source": "https://github.com/php-fig/container/tree/1.1.2"
|
||||
},
|
||||
"time": "2021-03-05T17:36:06+00:00"
|
||||
"time": "2021-11-05T16:50:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/event-dispatcher",
|
||||
@@ -4040,16 +4036,16 @@
|
||||
},
|
||||
{
|
||||
"name": "stripe/stripe-php",
|
||||
"version": "v7.100.0",
|
||||
"version": "v7.102.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/stripe/stripe-php.git",
|
||||
"reference": "3dfc3dcd5d967a14d2852f34e544188af5f9b799"
|
||||
"reference": "7c612a45fd6661e35ff255c722f5d529b98e811f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/3dfc3dcd5d967a14d2852f34e544188af5f9b799",
|
||||
"reference": "3dfc3dcd5d967a14d2852f34e544188af5f9b799",
|
||||
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/7c612a45fd6661e35ff255c722f5d529b98e811f",
|
||||
"reference": "7c612a45fd6661e35ff255c722f5d529b98e811f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -4095,9 +4091,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/stripe/stripe-php/issues",
|
||||
"source": "https://github.com/stripe/stripe-php/tree/v7.100.0"
|
||||
"source": "https://github.com/stripe/stripe-php/tree/v7.102.0"
|
||||
},
|
||||
"time": "2021-10-11T20:05:45+00:00"
|
||||
"time": "2021-11-17T20:13:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "swiftmailer/swiftmailer",
|
||||
@@ -6637,16 +6633,16 @@
|
||||
},
|
||||
{
|
||||
"name": "vlucas/phpdotenv",
|
||||
"version": "v5.3.1",
|
||||
"version": "v5.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/vlucas/phpdotenv.git",
|
||||
"reference": "accaddf133651d4b5cf81a119f25296736ffc850"
|
||||
"reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/accaddf133651d4b5cf81a119f25296736ffc850",
|
||||
"reference": "accaddf133651d4b5cf81a119f25296736ffc850",
|
||||
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/d4394d044ed69a8f244f3445bcedf8a0d7fe2403",
|
||||
"reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -6669,7 +6665,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "5.3-dev"
|
||||
"dev-master": "5.4-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -6699,7 +6695,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/vlucas/phpdotenv/issues",
|
||||
"source": "https://github.com/vlucas/phpdotenv/tree/v5.3.1"
|
||||
"source": "https://github.com/vlucas/phpdotenv/tree/v5.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -6711,7 +6707,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2021-10-02T19:24:42+00:00"
|
||||
"time": "2021-11-10T01:08:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "voku/portable-ascii",
|
||||
@@ -7285,16 +7281,16 @@
|
||||
},
|
||||
{
|
||||
"name": "facade/ignition",
|
||||
"version": "2.16.0",
|
||||
"version": "2.16.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facade/ignition.git",
|
||||
"reference": "23400e6cc565c9dcae2c53704b4de1c4870c0697"
|
||||
"reference": "29b533f63a3b269aa599d08dd4d22a0d720e295f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/facade/ignition/zipball/23400e6cc565c9dcae2c53704b4de1c4870c0697",
|
||||
"reference": "23400e6cc565c9dcae2c53704b4de1c4870c0697",
|
||||
"url": "https://api.github.com/repos/facade/ignition/zipball/29b533f63a3b269aa599d08dd4d22a0d720e295f",
|
||||
"reference": "29b533f63a3b269aa599d08dd4d22a0d720e295f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7358,7 +7354,7 @@
|
||||
"issues": "https://github.com/facade/ignition/issues",
|
||||
"source": "https://github.com/facade/ignition"
|
||||
},
|
||||
"time": "2021-10-28T11:47:23+00:00"
|
||||
"time": "2021-11-16T13:09:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "facade/ignition-contracts",
|
||||
@@ -7486,16 +7482,16 @@
|
||||
},
|
||||
{
|
||||
"name": "friendsofphp/php-cs-fixer",
|
||||
"version": "v3.2.1",
|
||||
"version": "v3.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
|
||||
"reference": "13ae36a76b6e329e44ca3cafaa784ea02db9ff14"
|
||||
"reference": "06bdbdfcd619183dd7a1a6948360f8af73b9ecec"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/13ae36a76b6e329e44ca3cafaa784ea02db9ff14",
|
||||
"reference": "13ae36a76b6e329e44ca3cafaa784ea02db9ff14",
|
||||
"url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/06bdbdfcd619183dd7a1a6948360f8af73b9ecec",
|
||||
"reference": "06bdbdfcd619183dd7a1a6948360f8af73b9ecec",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7504,18 +7500,19 @@
|
||||
"doctrine/annotations": "^1.12",
|
||||
"ext-json": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"php": "^7.2 || ^8.0",
|
||||
"php": "^7.2.5 || ^8.0",
|
||||
"php-cs-fixer/diff": "^2.0",
|
||||
"symfony/console": "^4.4.20 || ^5.1.3",
|
||||
"symfony/event-dispatcher": "^4.4.20 || ^5.0",
|
||||
"symfony/filesystem": "^4.4.20 || ^5.0",
|
||||
"symfony/finder": "^4.4.20 || ^5.0",
|
||||
"symfony/options-resolver": "^4.4.20 || ^5.0",
|
||||
"symfony/console": "^5.1.3",
|
||||
"symfony/event-dispatcher": "^5.0",
|
||||
"symfony/filesystem": "^5.0",
|
||||
"symfony/finder": "^5.0",
|
||||
"symfony/options-resolver": "^5.0",
|
||||
"symfony/polyfill-mbstring": "^1.23",
|
||||
"symfony/polyfill-php72": "^1.23",
|
||||
"symfony/polyfill-php80": "^1.23",
|
||||
"symfony/polyfill-php81": "^1.23",
|
||||
"symfony/process": "^4.4.20 || ^5.0",
|
||||
"symfony/stopwatch": "^4.4.20 || ^5.0"
|
||||
"symfony/process": "^5.0",
|
||||
"symfony/stopwatch": "^5.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"justinrainbow/json-schema": "^5.2",
|
||||
@@ -7531,12 +7528,11 @@
|
||||
"phpunitgoodpractices/polyfill": "^1.5",
|
||||
"phpunitgoodpractices/traits": "^1.9.1",
|
||||
"symfony/phpunit-bridge": "^5.2.4",
|
||||
"symfony/yaml": "^4.4.20 || ^5.0"
|
||||
"symfony/yaml": "^5.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-dom": "For handling output formats in XML",
|
||||
"ext-mbstring": "For handling non-UTF8 characters.",
|
||||
"symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible."
|
||||
"ext-mbstring": "For handling non-UTF8 characters."
|
||||
},
|
||||
"bin": [
|
||||
"php-cs-fixer"
|
||||
@@ -7564,7 +7560,7 @@
|
||||
"description": "A tool to automatically fix PHP code style",
|
||||
"support": {
|
||||
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.2.1"
|
||||
"source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.3.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -7572,7 +7568,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2021-10-05T08:12:17+00:00"
|
||||
"time": "2021-11-15T18:06:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "fzaninotto/faker",
|
||||
@@ -9390,16 +9386,16 @@
|
||||
},
|
||||
{
|
||||
"name": "sebastian/exporter",
|
||||
"version": "4.0.3",
|
||||
"version": "4.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/sebastianbergmann/exporter.git",
|
||||
"reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65"
|
||||
"reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65",
|
||||
"reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65",
|
||||
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9",
|
||||
"reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -9448,14 +9444,14 @@
|
||||
}
|
||||
],
|
||||
"description": "Provides the functionality to export PHP variables for visualization",
|
||||
"homepage": "http://www.github.com/sebastianbergmann/exporter",
|
||||
"homepage": "https://www.github.com/sebastianbergmann/exporter",
|
||||
"keywords": [
|
||||
"export",
|
||||
"exporter"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/sebastianbergmann/exporter/issues",
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
|
||||
"source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -9463,7 +9459,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-09-28T05:24:23+00:00"
|
||||
"time": "2021-11-11T14:18:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sebastian/global-state",
|
||||
|
||||
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -43,6 +43,18 @@
|
||||
<option v-for="language in languages" :value="language" v-text="language"></option>
|
||||
</FormSelect>
|
||||
|
||||
<FormSelect :helper-text="__('This will rotate any logs older than selected, this helps cleanup your database')" :label="__('Rotate logs after')" v-model="form.rotate_logs_after">
|
||||
<option value="">Don't rotate logs</option>
|
||||
<option value="weeks-1">Older than 1 week</option>
|
||||
<option value="months-1">Older than 1 month</option>
|
||||
<option value="months-3">Older than 3 months</option>
|
||||
<option value="months-6">Older than 6 months</option>
|
||||
<option value="years-1">Older than 1 year</option>
|
||||
<option value="years-2">Older than 2 years</option>
|
||||
<option value="years-3">Older than 3 years</option>
|
||||
<option value="years-4">Older than 4 years</option>
|
||||
</FormSelect>
|
||||
|
||||
<div>
|
||||
<input id="support" class="form-checkbox" type="checkbox"
|
||||
v-model="form.support">
|
||||
@@ -188,6 +200,7 @@
|
||||
isolate_per_site_per_user: this.company_settings.isolate_per_site_per_user,
|
||||
default_language: this.company_settings.default_language,
|
||||
logo: null,
|
||||
rotate_logs_after: this.company_settings.rotate_logs_after,
|
||||
},
|
||||
}
|
||||
},
|
||||
@@ -216,6 +229,7 @@
|
||||
data.append('isolate_per_site_per_user', this.form.isolate_per_site_per_user || false)
|
||||
data.append('default_language', this.form.default_language || 'en')
|
||||
data.append('logo', this.form.logo || '')
|
||||
data.append('rotate_logs_after', this.form.rotate_logs_after || '')
|
||||
data.append('_method', 'patch')
|
||||
|
||||
this.$inertia.post(this.route('admin.settings.update'), data, {
|
||||
|
||||
Reference in New Issue
Block a user