<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $table = 'category';
    protected $guarded = ['category_slug','id'];

    public function products()
    {
    	return $this->hasMany('App\Product', 'category_id', 'id');
    }
}
