style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -12,7 +12,7 @@ class ModelVersion extends Model
|
||||
protected $table = 'model_versions';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id','model_id','version_no','status','effective_from','effective_to','notes','is_active',
|
||||
'tenant_id', 'model_id', 'version_no', 'status', 'effective_from', 'effective_to', 'notes', 'is_active',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -21,15 +21,18 @@ class ModelVersion extends Model
|
||||
'effective_to' => 'datetime',
|
||||
];
|
||||
|
||||
public function model() {
|
||||
public function model()
|
||||
{
|
||||
return $this->belongsTo(DesignModel::class, 'model_id');
|
||||
}
|
||||
|
||||
public function bomTemplates() {
|
||||
public function bomTemplates()
|
||||
{
|
||||
return $this->hasMany(BomTemplate::class, 'model_version_id');
|
||||
}
|
||||
|
||||
public function scopeReleased($q) {
|
||||
public function scopeReleased($q)
|
||||
{
|
||||
return $q->where('status', 'RELEASED');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user