In laravel getting this error SymfonyComponentDebugExceptionFatalThrowableError : Class ‘pathtoclass’ not found

  laravel, php

I have laravel 6.2 version which is running perfectly on my windows system.
But, when i have put my project folder on to ubuntu pc it is giving me the error.

SymfonyComponentDebugExceptionFatalThrowableError : Class ‘pathtoclass’ not found

Path to class starts from ‘AppHttpControllersFolderClassFile’.

`use AppHttpControllersFolderFolderclassFile as File;`

'class ExampleController extends Command {
 public $new_file; 
 public function __construct()
 {
    parent::__construct();
    $this->new_file = new File(); 
 }

 }`

It is working on windows perfectly. I have a new pc which is Ubuntu 20.04, installed lampp and hit the command of "composer dump-autoload" same error is showing on the console. Unable to autoload the files.

Source: Laravel

Leave a Reply