Problems in Laravel when logging in

I am uploading my first Laravel application to a hosting, and after creating a user, I get the following error:

screenshot from error

I am seeing that the registration of the new user was created successfully scheenshot pryect in host

My project is in the dash_roles test folder, while everything that was in public, I put in the public_html folder.

I clarify that the project is with Laravel 9, I already verified that the same version of PHP with which I made the project is selected on my server. Modify the lines in the index.php file located in public_html.

If you need me to upload something else so you can find where the error is, let me know and I'll upload it.


edit: here a screenshot for my assets un app.blade.php enter image description here

1 answer

  • answered 2022-05-05 20:36 apache

    Can you further provide the steps which you did from starting, also did you compile the assets before running the code? if not first check with following steps in your terminal.

    1. first run these code to check if node or npm is running or not. node -v and npm -v if not installed, then install it npm install, after that

    2. Run all Mix tasks and minify output... npm run prod

    3. try this

    mix.js('resources/js/app.js', 'public/js');

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum