|UnitHistory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory newQuery() * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory onlyTrashed() * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory query() * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereContent($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereDeletedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereTitle($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereUnitId($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory whereVisibleToFranchisee($value) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory withTrashed(bool $withTrashed = true) * @method static \Illuminate\Database\Eloquent\Builder|UnitHistory withoutTrashed() * @mixin \Eloquent */ class UnitHistory extends Model { use HasFactory, SoftDeletes; protected $table = 'unit_histories'; protected $guarded = ['id']; protected $casts = [ 'visible_to_franchisee' => 'boolean', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at' => 'datetime', ]; public function unit(): BelongsTo { return $this->belongsTo(Unit::class, 'unit_id'); } }