mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
10 lines
182 B
PHP
Executable File
10 lines
182 B
PHP
Executable File
<?php
|
|
|
|
class Product extends EntityModel
|
|
{
|
|
public static function findProductByKey($key)
|
|
{
|
|
return Product::scope()->where('product_key', '=', $key)->first();
|
|
}
|
|
}
|