restore composer.json, add mysqli extension

This commit is contained in:
2026-04-15 17:02:52 +05:00
commit 77cf56a348
4317 changed files with 1397107 additions and 0 deletions

35
app/Models/Measurement.php Executable file
View File

@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\App;
/**
* @package App\Models
* @property int $id
* @property array $name
*
*/
class Measurement extends Model
{
use HasFactory;
protected $fillable = [
'name',
];
protected $casts = [
'name' => 'array',
];
public function getName(): string | null
{
if (App::isLocale('ru')) {
return (string) $this->name['ru'];
}
return (string) $this->name['uz'];
}
}