ok

Mini Shell

Direktori : /home2/selectio/public_html/limpiar.in.net/app/Models/
Upload File :
Current File : /home2/selectio/public_html/limpiar.in.net/app/Models/ProductStock.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ProductStock extends Model
{
    protected $fillable = ['product_id', 'variant', 'sku', 'price', 'qty', 'image'];
    //
    public function product(){
    	return $this->belongsTo(Product::class);
    }

    public function wholesalePrices() {
        return $this->hasMany(WholesalePrice::class);
    }
}

Zerion Mini Shell 1.0