invoiceninja/app/models/Product.php

9 lines
165 B
PHP
Raw Normal View History

2013-11-26 14:45:07 +02:00
<?php
2013-12-04 18:20:14 +02:00
class Product extends EntityModel
2013-12-31 11:43:39 +02:00
{
2013-12-03 19:32:33 +02:00
public static function findProductByKey($key)
{
2013-12-04 18:20:14 +02:00
return Product::scope()->where('product_key','=',$key)->first();
}
2013-11-26 14:45:07 +02:00
}