Last Updated:

Laravel : Fatal error - Class 'PHPExcel_Shared_Font' not found not found

Laravel - error resolution method: Laravel 5. Fatal error: Class 'PHPExcel_Shared_Font' not found.
 

First, open the file: "/vendor/composer/autoload_namespaces.php"
Add a line:

After open the composer.json
file And in "require" add the line:


It should turn out like this:


After the actions performed above, go to the root of the site and run the command using composer:

When the library update is complete, the problem should be resolved.

Remind. Performing the update and these manipulations you do at your own risk, because after the update, the changes you made earlier may affect the operation of your site!
'PHPExcel' => array($vendorDir . '/phpoffice/phpexcel/Classes'),
"phpoffice/phpexcel": "dev-master"
"require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "phpoffice/phpexcel": "dev-master"
    },
composer update