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

namespace App;

use Illuminate\Database\Eloquent\Model;
use Laraveldaily\Quickadmin\Observers\UserActionsObserver;
use Illuminate\Database\Eloquent\SoftDeletes;

class PiercingCatalog extends Model {

    use SoftDeletes;

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

    protected $table    = 'piercing_catalogs';
    
    protected $fillable = [
          'name',
          'interval',
          'picture',
          'body',
          'showhide',
          'type'
    ];
    
    public static $showhide = ["show" => "show", "hide" => "hide", ];


    public static function boot()
    {
        parent::boot();

        PiercingCatalog::observe(new UserActionsObserver);
    }
    
    
    public function prices(){
        return $this->hasMany('App\PiercingPrice', 'piercingcatalog_id