관리-도구
편집 파일: Property.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Property extends Model { use HasFactory; protected $casts = ['property' => 'object','gallery' => 'object']; protected $guarded = []; public function time() { return $this->belongsTo(Time::class,'every_time', 'id')->withDefault(); } public function reviews() { return $this->hasMany(Review::class); } public function payment() { return $this->belongsTo(Payment::class); } }