I have installed maatwebsite/excel to my laravel project . And then deleted it by deleting its require from composer.json and doing composer update . Also deleted excel.php from app/config . Now Im getting Class 'Maatwebsite\Excel\ExcelServiceProvider' not found .
public function createProvider($provider)
{
return new $provider($this->app);
}
I did route clear,cache clear , dump autoload . But nothing helped.
Check your config/app.php
the providers
array, and delete that line from there if you manually add that one.