I want to start the server in Laravel but when I put the command it sends me an error in the code
Attached code:
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitdbc6a4cfbb38d815161c757f8eb5f304
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
require __DIR__ . '/platform_check.php';
spl_autoload_register(array('ComposerAutoloaderInitdbc6a4cfbb38d815161c757f8eb5f304', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitdbc6a4cfbb38d815161c757f8eb5f304', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitdbc6a4cfbb38d815161c757f8eb5f304::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitdbc6a4cfbb38d815161c757f8eb5f304::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiredbc6a4cfbb38d815161c757f8eb5f304($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequiredbc6a4cfbb38d815161c757f8eb5f304($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
}
}
the editor gives me an error on line 31 but I don't understand why I don't know if something is missing in the code I'm using Laravel and I want to implement a captcha but it doesn't allow me to start the server to see the changes I've made what can I do there with that error Or what do I have to do to correct it?
Attached image of the error:
the error is from an npm package that is not there or does not work, apparently the laravel installation is bad or you installed a package that works well with windows, you could try to go back if you use Git, otherwise learn how to use it git to avoid this type of failure. Check what packages you installed in the autoload or the package.json file, which is where all the dependencies are added.
Note : there are packages that use symbolic links, which break when you copy paste the project.