mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Including Item and Product migration, controllers and models
This commit is contained in:
18
app/Item.php
Normal file
18
app/Item.php
Normal 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', ''],
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user