Package Class not found

  • Steps

    1. Issue

    The package has been already installed. But laravel shows 'Package Class not found'


    2. Solutions

    Solution 1

    add a route in the routes file and call the route

    
                        Route::get('/clear-cache', function() {
                            Artisan::call('cache:clear');
                            Artisan::call('config:cache');
                            return "Cache is cleared";
                        });
                        
    Solution 2

    Remove the cache files from boostrap/cache folder