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

namespace App;

use Illuminate\Database\Eloquent\Model;


class Catalogs extends Model
{


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

    protected $table = 'catalogs';

    protected $fillable = [
        'name',
        'price',
        'interval',
        'picture',
        'body',
        'showhide',
        'type'
    ];

    public function styles()
    {
        return $this->hasMany('App\Styles', 'catalog