mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
15 lines
312 B
PHP
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();
|
|
}
|
|
}
|