'product_key', 'notes|description|details' => 'notes', 'cost|amount|price' => 'cost', ]; } public function getEntityType() { return ENTITY_PRODUCT; } public static function findProductByKey($key) { return Product::scope()->where('product_key', '=', $key)->first(); } public function user() { return $this->belongsTo('App\Models\User')->withTrashed(); } public function default_tax_rate() { return $this->belongsTo('App\Models\TaxRate'); } }