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

namespace App;

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


use Illuminate\Database\Eloquent\SoftDeletes;

class PictureManager extends Model {

    use SoftDeletes;

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

    protected $table    = 'picture_manager';
    
    protected $fillable = [
          'picture',
          'manager_id',
          'client_id',
          'ip',
          'showhide',
          'type'
    ];
    
    public static $showhide = ["show" => "show", "hide" => "hide", ];

    public function clients(){
        return $this->belongsTo('App\Client','client_id');
    }


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

        Picture::observe(new UserActionsObserver);
    }
    
