I am trying to use vendor/autoload but it keep giving me this error:
Illuminate\View\Engines\PhpEngine::main(): Failed opening required 'vendor/autoload.php' (include_path='C:\xampp\php\PEAR')
I check that it is because of the path problem but nothing works: Some said that it should be something like this based on my autoload.php:
require_once __DIR__ . '/vendor/autoload.php'; //but doesn't work
And some said that it is already there so there is no need for require autoload and all I have to do is composer dump-autoload but still nothing. Based on this link, Laravel 5 how to include autoload.php
this is my autoload file: (located at \project\vendor)
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit63603d79616e7bbd4553d0e6de44e738::getLoader();
Can someone help me with this problem? Thanks in advance