File: D:/HostingSpaces/SBogers10/blije-gasten.komma.pro/app/Komma/Zipcodes/Models/Zipcode.php
<?php
namespace App\Komma\Zipcodes\Models;
use App\Komma\Kms\Core\Attributes\Models\Traits\HasThumbnailInterface;
use App\Komma\Kms\Core\Attributes\Models\Traits\HasThumbnailTrait;
use App\Komma\Kms\Core\Entities\DisplayNameInterface;
use App\Komma\Kms\Core\Entities\DisplayNameTrait;
use Illuminate\Database\Eloquent\Model;
/**
* Class Page
*
* @package App\Komma\Pages\Models
* @property string $zipcode
* @property string $region_name
* @property string $country
* @property integer $price
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
*/
final class Zipcode extends Model implements DisplayNameInterface, HasThumbnailInterface
{
use DisplayNameTrait;
use HasThumbnailTrait;
protected $table = 'zipcodes';
protected $class = Zipcode::class;
protected $fillable = ['zipcode', 'region_name', 'country', 'price'];
/**
* Get the name for the sidebar
*
* @return string
*/
public function getSidebarName():string
{
return $this->region_name;
}
}