PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, April 18, 2022

[FIXED] Why its showing class not found errors?

 April 18, 2022     laravel, laravel-nova, php     No comments   

Issue

I just cloned a git repo and ran the necessary commands to install the project.

When I access the login page "http://localhost:80/nova/login" it works. However after enter the correct credentials and submit it shows an error:

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class '\App\User' not found

Do you know what can be the issue?

Also running this command:

/var/www # php artisan component:update

It shows a similar error:

Starting Update of All Component files

   Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'App\Component' not found

Solution

After cloning, running through these steps should fix your problem:

  • run composer install or npm install.
  • check that the .env file is correct.
  • run php artisan key:generate
  • Optional: php artisan migrate
  • run php artisan serve


Answered By - geertjanknapen
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing