encrypt download url

This commit is contained in:
xiaomlove
2021-06-01 23:33:28 +08:00
parent 87817de415
commit 0852509084
5 changed files with 55 additions and 4 deletions
+5 -1
View File
@@ -2,11 +2,14 @@
namespace App\Repositories;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Str;
class BaseRepository
{
protected function getSortFieldAndType(array $params)
private static $enctyper;
protected function getSortFieldAndType(array $params): array
{
$field = $params['sort_field'] ?? 'id';
$type = 'desc';
@@ -15,4 +18,5 @@ class BaseRepository
}
return [$field, $type];
}
}