<?php

    namespace App\Models;

    use App\Libs\Database\Eloquent\ContentTypeModel;
    use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;

    class ProductBluetoothVersion extends ContentTypeModel
    {
        use LanguageSupportTrait;

        protected $hidden = ['languages', "websites"];
        protected $with = ['languages', "websites"];

        protected $dates = []; // dates

        protected $casts = [
            'other_link' => 'array',
            'buy_now_link' => 'array',
            'quick_start_link' => 'array',
        ];

        public function product() {
            return $this->belongsTo(Product::class);
        }

        public function bluetoothVersion() {
            return $this->belongsTo(BluetoothVersion::class);
        }

    }
