sarga/packages/Webkul/Product/src/Models/ProductGrid.php

20 lines
565 B
PHP
Raw Normal View History

<?php
namespace Webkul\Product\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Product\Models\Product;
2019-02-18 07:30:40 +00:00
use Webkul\Product\Contracts\ProductGrid as ProductGridContract;
2019-02-18 07:30:40 +00:00
class ProductGrid extends Model implements ProductGridContract
{
protected $table = 'products_grid';
2018-10-23 11:46:00 +00:00
protected $fillable = ['product_id', 'sku', 'type', 'attribute_family_name', 'name', 'quantity', 'cost', 'price', 'status'];
public $timestamps = false;
public function product() {
2019-02-18 07:30:40 +00:00
return $this->belongsTo(ProductProxy::modelClass(), 'product_id');
}
}