Including Item and Product migration, controllers and models

This commit is contained in:
2018-09-09 00:26:57 -03:00
parent c706910d3a
commit e8c6717fe1
10 changed files with 160 additions and 9 deletions

18
app/Item.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Item extends Model
{
//
public function free($productID)
{
return $query->where([
['productID', $productID],
['usedBy', ''],
]);
}
}