mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Including Items and Products views and controllers
This commit is contained in:
@@ -7,9 +7,10 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class Item extends Model
|
||||
{
|
||||
//
|
||||
public function free($productID)
|
||||
public function free($productID, $userID)
|
||||
{
|
||||
return $query->where([
|
||||
['userID', $userID],
|
||||
['productID', $productID],
|
||||
['usedBy', ''],
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user