ispt4.0_laravel/app/Models/GeneralAttributesEquipment.php
2023-08-01 15:20:39 +01:00

21 lines
514 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class GeneralAttributesEquipment extends Model
{
use HasFactory;
protected $table = 'general_attributes_equipaments';
protected $primaryKey = 'general_attributes_equipment_id';
public function specificAttributes()
{
return $this->hasMany(SpecificAttributesEquipmentType::class, 'general_attributes_equipment_id', 'general_attributes_equipment_id');
}
}