reportico-web / laravel-reportico

Reportico Module for Laravel
66 stars 30 forks source link

ReporticoServiceProvider not found error while installing Reportico Laravel #20

Open kashifau opened 4 years ago

kashifau commented 4 years ago

I am running Laravel 5.4 and trying to install Reportico. I followed all the installation steps provided at http://www.reportico.org/laravel/public/index.php/installation but when I use php artisan vendor:publish I get the following error: [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Reportico\Reportico\ReporticoServiceProvider' not found

reportico-web commented 4 years ago

Hi there i just did a fresh install of laravel 5.4 and reportico and am able to do publish with following commands

composer create-project --prefer-dist laravel/laravel laravel54 "5.4.*" composer require reportico/laravel-reportico "~5.2" Added Reportico\Reportico\ReporticoServiceProvider::class, to provders section in config/app.php and ran php artisan vendor:publish

everything seems ok.... i would assume that if the composer require worked you should have a vendor/reportico/laravel-reportico folder .. can you fonfirm you have that?

kashifau commented 4 years ago

I did not do a fresh install, I have a working project. composer require reportico/laravel-reportico "~5.2" doesn't create a folder but doesn't return any error either. I manually copied the laravel-reportico folder under vendor.

reportico-web commented 4 years ago

ok but if you just copy the laravel reportico folder under vendor folder you wont be also copying the composer autoload rules in vendor composer which allows vendor files to be loaded... you would need I believe to use composer require to download reportico into your develop environment vendor folders and then you would also need to copy at minimum the vendor/composer folder too.

kashifau commented 4 years ago

Okay. Will give that a try tomorrow. Thanks!