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

namespace App;

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


use Illuminate\Database\Eloquent\SoftDeletes;

class Saloon extends Model
{

    use SoftDeletes;

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

    protected $table = 'saloon';

    protected $fillable = [
        'city_id',
        'name',
        'address',
        'phone',
        'body',
        'hours',
        'picture',
        'showhide',
        'manager_id',
        'company_id'
    ];

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

    public function artists()
    {
        return $this->hasMany('App\Artist', 'saloon_id');
    }

    public function companies()
    {
        return $this->belongsTo('App\Company', 'company_id');
    }

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

        Saloon::observe(new UserActionsObserver);
    }

    public function users()
    {
        return $this->belongsTo('App\User', 'manager_id');
    }

    public function cities(){
        return $this->belongsTo('App\City', 'cit