İlk temizlik tamamlandı bir önceki projeden

This commit is contained in:
Ümit Tunç
2026-04-28 21:14:25 +03:00
commit f80443aec0
10000 changed files with 959965 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Element extends Model
{
use HasFactory;
protected $table = 'pdfm_elements';
protected $fillable = [
'element_code',
'element_name',
'element_type',
'material',
'diameter',
'thickness',
'classification',
'weight'
];
// Relationships
public function jointsFrom()
{
return $this->hasMany(Joint::class, 'element_from', 'element_code');
}
public function jointsTo()
{
return $this->hasMany(Joint::class, 'element_to', 'element_code');
}
}