Error in Publishing Laravel + PrimeVue Project

Dear friends,

I am having problems with Publishing my project to production using Laravel with PrimeVue, the api seems to work correctly, but when I upload the fronted and try to execute, I am having problems with the api components such as /api/auth/login and similar both GET and POST return 500 Internal Server Error.

I appreciate if you can help me.
@willvin @Wahome-mutahi100

can you share a screenshot of this error?

you can try for clear

php artisan route:cache
php artisan cache:clear
php artisan view:clear
php artisan optimize
php artisan clear-compiled
php artisan config:clear
php artisan config:cache
php artisan optimize:clear