<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected  $guarded = [];


    public function posts()
    {
        return $this->hasMany('App\Models\Post','cat_id','id');
    }
}
