<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Stock extends Model
{
    protected $table = 'stocks';

    protected $fillable = [
        'name'
    ];

    public function product()
    {
        return $this->hasMany('App\Models\Product', 'stocks_id', 'id');
    }
}
