Including Items and Products views and controllers

This commit is contained in:
2018-09-10 01:23:32 -03:00
parent 112d3dc44e
commit 25cff75c48
9 changed files with 144 additions and 14 deletions

View File

@@ -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', ''],
]);