<?php

namespace App;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Shipping extends BaseModel
{
    use HasFactory;
	
	protected $table = 'shipping_costs';
	
	protected $fillable = [
		'id', 'area_id', 'price', 'free_from', 'description', 'is_activated', 'is_deleted', 'created_at', 'updated_at'
	];
	
	public function area()
	{
		return $this->belongsTo(Area::class)->with('parent');
	}
}
