mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
19 lines
260 B
PHP
19 lines
260 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class Item extends Model
|
||
|
{
|
||
|
//
|
||
|
public function free($productID)
|
||
|
{
|
||
|
return $query->where([
|
||
|
['productID', $productID],
|
||
|
['usedBy', ''],
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
}
|