PHP Fatal error: Class’Elibyy\TCPDF\ServiceProvider” in laravel

----------------------------------------------------------------
laravel framework version 5.2 
added at composer.json
 "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "laravelcollective/html": "~5.2",
        "uxweb/sweet-alert": "~1.1",
        "maatwebsite/excel": "~2.1.0",
        "intervention/image": "dev-master",
        "elibyy/tcpdf-laravel": "5.2.*"
    },
------------------------------------------------------------------
1) comment out 2 lines from config/app.php
1.1) at  'providers' => [ 
need to comment out 
//Elibyy\TCPDF\ServiceProvider::class,

1.2) at  'aliases' => [
need to comment out 
//'PDF'       => Elibyy\TCPDF\Facades\TCPDF::class,

------------------------------------------------------------------
2) composer update --no-scripts
3) un-comment previous 2 lines from config/app.php
4) run again "composer update --no-scripts"

Cheers
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s