Use zstd for domain home pages info, added nunomaduro/laravel-console-summary

This commit is contained in:
Deon George 2022-10-23 20:11:03 +11:00
parent 5745c67538
commit e6ba03080b
5 changed files with 1331 additions and 1861 deletions

View File

@ -46,14 +46,15 @@ class Domain extends Model
/* ATTRIBUTES */
public function getHomePageAttribute($value)
public function getHomePageAttribute(string $value): string
{
return $value ? gzuncompress(base64_decode($value)) : 'No available information at the moment.';
//0xFD2FB528
return $value ? zstd_uncompress(base64_decode($value)) : 'No available information at the moment.';
}
public function setHomePageAttribute($value)
public function setHomePageAttribute(string $value): void
{
$this->attributes['homepage'] = base64_encode(gzcompress($value,9));
$this->attributes['homepage'] = base64_encode(zstd_compress($value,9));
}
/* METHODS */

View File

@ -146,6 +146,18 @@ final class Echomail extends Model implements Packet
->withPivot(['id','parent_id']);
}
/* ATTRIBUTES */
public function getMsgAttribute($value): ?string
{
return $value ? zstd_uncompress(base64_decode($value)) : NULL;
}
public function getMsgSrcAttribute($value): ?string
{
return $value ? zstd_uncompress(base64_decode($value)) : NULL;
}
/* METHODS */
public function jsonSerialize(): array

View File

@ -10,6 +10,7 @@
"ext-sockets": "*",
"ext-zip": "*",
"ext-zlib": "*",
"ext-zstd": "*",
"eduardokum/laravel-mail-auto-embed": "^1.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
@ -18,6 +19,7 @@
"laravel/passport": "^10.1",
"laravel/ui": "^3.2",
"leenooks/cockroachdb-laravel": "^0.1.0",
"nunomaduro/laravel-console-summary": "^1.8",
"rennokki/laravel-eloquent-query-cache": "^3.1",
"repat/laravel-job-models": "^0.5.1"
},

3119
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,50 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Hide Commands
|--------------------------------------------------------------------------
|
| This option allows to hide certain commands from the summary output.
| They will still be available in your application. Wildcards are supported
|
| Examples: "make:*", "list"
|
*/
'hide' => [
'cache:*',
'completion',
'config:*',
'db:*',
'debugbar:*',
'event:*',
'ide-helper:*',
'inspire',
'key:generate',
'list',
'make:*',
'migrate:*',
'model:prune',
'notifications:table',
'optimize:*',
'package:discover',
'passport:*',
'queue:*',
'route:*',
'serve',
'schedule:*',
'schema:dump',
'session:table',
'storage:link',
'stub:publish',
'test',
'theme:*',
'ui:*',
'vendor:publish',
'view:*',
],
];