pull/3/head
Rustem 2025-01-30 00:17:36 +05:00
parent be0d2da2ea
commit 92983774fc
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ return new class extends \A7kz\Platform\Commands\InstallScript {
#[NoReturn] private function seed(): void #[NoReturn] private function seed(): void
{ {
$seed = Storage::disk('pipicar_crm')->get('auto/seeds/seeds.json'); $seed = Storage::disk('pipicar_crm')->get('auto/seeds/seed.json');
if (str_starts_with($seed, "\xef\xbb\xbf")) { if (str_starts_with($seed, "\xef\xbb\xbf")) {
$seed = substr($seed, 3); // Удаляем первые 3 байта $seed = substr($seed, 3); // Удаляем первые 3 байта

View File

@ -53,7 +53,7 @@ return new class extends \A7kz\Platform\Commands\InstallScript {
#[NoReturn] private function seed(): void #[NoReturn] private function seed(): void
{ {
$seed = Storage::disk('pipicar_crm')->get('owner_contracts/seeds/seeds.json'); $seed = Storage::disk('pipicar_crm')->get('owner_contracts/seeds/seed.json');
if (str_starts_with($seed, "\xef\xbb\xbf")) { if (str_starts_with($seed, "\xef\xbb\xbf")) {
$seed = substr($seed, 3); // Удаляем первые 3 байта $seed = substr($seed, 3); // Удаляем первые 3 байта

View File

@ -60,7 +60,7 @@ return new class extends \A7kz\Platform\Commands\InstallScript {
private function seed(): void private function seed(): void
{ {
$seed = Storage::disk('pipicar_crm')->get('owners/seeds/seeds.json'); $seed = Storage::disk('pipicar_crm')->get('owners/seeds/seed.json');
if (str_starts_with($seed, "\xef\xbb\xbf")) { if (str_starts_with($seed, "\xef\xbb\xbf")) {
$seed = substr($seed, 3); // Удаляем первые 3 байта $seed = substr($seed, 3); // Удаляем первые 3 байта