style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -9,21 +9,21 @@
|
||||
|
||||
class CategoryField extends Model
|
||||
{
|
||||
use SoftDeletes, BelongsToTenant, ModelTrait;
|
||||
use BelongsToTenant, ModelTrait, SoftDeletes;
|
||||
|
||||
protected $table = 'category_fields';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id','category_id',
|
||||
'field_key','field_name','field_type',
|
||||
'is_required','sort_order','default_value','options','description',
|
||||
'created_by','updated_by','deleted_by',
|
||||
'tenant_id', 'category_id',
|
||||
'field_key', 'field_name', 'field_type',
|
||||
'is_required', 'sort_order', 'default_value', 'options', 'description',
|
||||
'created_by', 'updated_by', 'deleted_by',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'is_required' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
'options' => 'array',
|
||||
'sort_order' => 'integer',
|
||||
'options' => 'array',
|
||||
];
|
||||
|
||||
public function category()
|
||||
@@ -32,5 +32,8 @@ public function category()
|
||||
}
|
||||
|
||||
// 편의 스코프
|
||||
public function scopeRequired($q) { return $q->where('is_required', 1); }
|
||||
public function scopeRequired($q)
|
||||
{
|
||||
return $q->where('is_required', 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user