jeudi 17 mars 2016

Uncaught exception 'ReflectionException' with message 'Class config does not exist' in vendor\laravel\framework\src\Illuminate\Container\Container.php

Fatal error: Uncaught exception 'ReflectionException' with message 'Class  config does not exist' in  D:\laragon\www\project\vendor\laravel\framework\src\Illuminate\Container\Container.php:738

i am trying to use dompdf in laravel and according to that documentation

Lumen:

After updating composer add the following lines to register provider in bootstrap/app.php

$app->register(\Barryvdh\DomPDF\ServiceProvider::class);

To change the configuration, copy the config file to your config folder and enable it in bootstrap/app.php:

$app->configure('dompdf');

and i add that code in bootstrap/app.php like this

$app->register(\Barryvdh\DomPDF\ServiceProvider::class);
$app->configure('dompdf');

but i am geting that error.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire