Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fabc828

Browse filesBrowse files
committed
model change
1 parent b8c1bac commit fabc828
Copy full SHA for fabc828

File tree

3 files changed

+3
-1
lines changed
Filter options

3 files changed

+3
-1
lines changed

‎app/Models/Cart.php

Copy file name to clipboardExpand all lines: app/Models/Cart.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Cart extends Model
99
{
1010
use HasFactory;
11-
protected $table = 'items';
11+
protected $table = 'Cart';
1212
//store items to cart
1313

1414

‎app/Models/Items.php

Copy file name to clipboardExpand all lines: app/Models/Items.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
class Items extends Model
99
{
1010
use HasFactory;
11+
protected $table = 'Item';
1112
//get items from db as and return them to controler
1213
}

‎app/Models/My_User.php

Copy file name to clipboardExpand all lines: app/Models/My_User.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
class MY_User extends Model
99
{
1010
use HasFactory;
11+
protected $table = 'User';
1112
//store user's credential into db
1213
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.