Actualizacion de Diseño Logins y Parte de Registro Negocios
This commit is contained in:
18
desarrollo/app/Models/ProductStock.php
Normal file
18
desarrollo/app/Models/ProductStock.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user