1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00
invoiceninja/app/Models/Product.php
2015-03-31 12:38:24 +03:00

15 lines
312 B
PHP

<?php namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Product extends EntityModel
{
use SoftDeletes;
protected $dates = ['deleted_at'];
public static function findProductByKey($key)
{
return Product::scope()->where('product_key', '=', $key)->first();
}
}