style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
namespace App\Models\Boards;
|
||||
|
||||
use App\Models\Members\User;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use App\Models\Members\User;
|
||||
|
||||
/**
|
||||
* @mixin IdeHelperBoardComment
|
||||
@@ -14,20 +14,28 @@ class BoardComment extends Model
|
||||
use SoftDeletes;
|
||||
|
||||
protected $table = 'board_comments';
|
||||
|
||||
protected $fillable = [
|
||||
'post_id', 'tenant_id', 'user_id', 'parent_id', 'content', 'ip_address', 'status'
|
||||
'post_id', 'tenant_id', 'user_id', 'parent_id', 'content', 'ip_address', 'status',
|
||||
];
|
||||
|
||||
public function post() {
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(Post::class, 'post_id');
|
||||
}
|
||||
public function user() {
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
public function parent() {
|
||||
|
||||
public function parent()
|
||||
{
|
||||
return $this->belongsTo(BoardComment::class, 'parent_id');
|
||||
}
|
||||
public function children() {
|
||||
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(BoardComment::class, 'parent_id')->where('status', 'active');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user