❓ Help SQLSTATE[42S02] in Laravel 8 (SOLVED)

Status
Not open for further replies.

Red-Eyed XaXa

Honorary Poster
Good day mga ka PHC. Need help lumalabas kasi sa postman kapag nag try ako mag send ng POST request:
"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_shop.user' doesn't exist (SQL: select count(*) as aggregate from user where email = test@gmail.com)"
pero naka specify na sa User model ko yung table (tinry ko protected $table pero ayaw din).
1664515309434.webp
Eto yung database ko sa phpmyadmin
1664515381143.webp
Thanks in Advance.
 
try mo clear cache mo
php artisan optimize

stick ka sa default convention ni laravel na " protected $table = 'your_table_name'; "
Much better pasilip ng tinatawag mo na controller.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 400
    Views
  • 2
    Participants
Last reply from:
Red-Eyed XaXa

Trending Topics

Online now

Members online
1,133
Guests online
5,291
Total visitors
6,424

Forum statistics

Threads
2,348,911
Posts
29,359,442
Members
1,092,766
Latest member
bilogfacunla
Back
Top