Hai, I 'm new to laravel framework. I have setup composer in kali linux. I have got an error,while running project.
Warning: require(/opt/lampp/htdocs/myapp/public/../vendor/autoload.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/myapp/public/index.php on line 24
Fatal error: require(): Failed opening required '/opt/lampp/htdocs/myapp/public/../vendor/autoload.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/myapp/public/index.php on line 24
j
stuff ;)
first
ls -lha /opt/lampp/htdocs/myapp/public/../vendor/autoload.phpdoes it exist? if it does not
composer installthis should create the folder and the autoloader or regenerate the autoloader
if you don't have composer
getcomposer.org
second check the permissions to vendor folder -> does the lampp user has access to it :) as a newbie probably
chown -R <theRightUser> /opt/lampp/htdocs/myappi hope this helped