mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Creating relationships between users/items/products
This commit is contained in:
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Product extends Model
|
||||
{
|
||||
protected $fillable = ['admin_id', 'name'];
|
||||
protected $fillable = ['user_id', 'name'];
|
||||
|
||||
public function items()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user