??????????????
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model; 
use Illuminate\Database\Eloquent\SoftDeletes;

class PiercingPrice extends Model
{

    use SoftDeletes;

    /**
     * The attributes that should be mutated to dates.
     *
     * @var array
     */
    protected $dates = ['deleted_at'];

    protected $table = 'piercing_price';

    protected $fillable = [
        'name',
        'price',
        'intervals',
        'picture',
        'coef',
        'piercingcatalog_id',
        'body',
        'showhide',
        'type'
    ];

    public static $showhide = ["show" => "show", "hide" => "hide",];

 

    public function catalog()
    {
        return $this->belongsTo('App\PiercingCatalog', 'piercingcatalog