<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Companies extends Model
{
    //
    protected $table = 'companies';
     protected $fillable = [
        'name',
        'slug',
        'logo',
        'description',
        'phone',
        'website',
        'field'
    ];

    public function items()
    {
        return $this->hasMany(CompanyItems::class , 'company_id');
    }

}
