Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit f7fa2e1

Browse files
Add Laravel Lang packages and initial localization files for English and Russian translations
1 parent fb1e490 commit f7fa2e1

23 files changed

+6748
-3539
lines changed

app/Models/SettingsSection.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88
use Illuminate\Database\Eloquent\Model;
99
use Illuminate\Database\Eloquent\Relations\Relation;
1010
use Illuminate\Database\Eloquent\SoftDeletes;
11+
use LaravelLang\Models\HasTranslations;
1112

1213
class SettingsSection extends Model
1314
{
15+
use HasTranslations;
1416
use HasFactory, SoftDeletes;
1517

1618
protected $fillable = [
1719
'parent_id',
18-
'title',
20+
21+
'key',
1922
];
2023

2124
public function parent(): Relation
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\Models;
6+
7+
use LaravelLang\Models\Casts\TrimCast;
8+
use LaravelLang\Models\Eloquent\Translation;
9+
10+
class SettingsSectionTranslation extends Translation
11+
{
12+
protected $fillable = [
13+
'locale',
14+
'title',
15+
];
16+
17+
protected $casts = [
18+
'title' => TrimCast::class,
19+
];
20+
}

app/Services/OrcaSlicerService.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace App\Services;
6+
7+
class OrcaSlicerService
8+
{
9+
public function download(): void {}
10+
11+
public function extract(): void {}
12+
13+
public function cleanup(): void {}
14+
}

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
"php": "^8.5",
1212
"dragon-code/laravel-deploy-operations": "^7.1",
1313
"inertiajs/inertia-laravel": "^2.0",
14+
"laravel-lang/models": "^1.5",
1415
"laravel/framework": "^12.0",
1516
"laravel/tinker": "^2.10.1",
1617
"laravel/wayfinder": "^0.1.11"
1718
},
1819
"require-dev": {
1920
"dragon-code/codestyler": "^6.5",
2021
"fakerphp/faker": "^1.23",
22+
"laravel-lang/common": "^6.7",
2123
"laravel/pint": "^1.24",
2224
"mockery/mockery": "^1.6",
2325
"nunomaduro/collision": "^8.6",

0 commit comments

Comments
 (0)