File: /var/www/ipsremont-demo/app/Models/SchemaParts.php
<?php
namespace App\Models;
/**
* @property int $id
* @property string $label
* @property int $amount
* @property string $deleted_at
* @property string $created_at
* @property string $updated_at
* @property string $part_external_id
* @property string $schema_external_id
*/
class SchemaParts extends BaseModel
{
protected $table = 'schema_parts';
public $incrementing = false;
protected $fillable = [
'schema_external_id',
'part_external_id',
'label',
'amount',
];
public function label(): string
{
return ($this->label) ? '№ ' . $this->label . ' ' . __('parts.in_schema') : __('parts.without_number');
}
}