Class 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' not found in laravel 7

Stefan Bogdanescu

Founder & Senior Architect · 2026-06-29

Laravel Company
Title: Resolving 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' Not Found Issues in Laravel 7 Applications Introduction Encountering issues with class not found, such as "Class 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' not found" while working on your Laravel 7 application can be frustrating. This article aims to provide a comprehensive guide to understanding the root cause of this error and offer potential solutions. Why Does 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' Not Found Occur? The root cause for this issue is usually due to incorrect configuration or misconfiguration in your project files, such as composer.json, config/app.php, or bootstrap/app.php. It could also be because of a missing library or a version mismatch between Laravel and its dependencies. How to Fix 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' Not Found Issues in Laravel 7 Applications? 1. Ensure Your Laravel Version and Dependencies are Updated: Make sure you have the latest version of Laravel (as indicated in the question), as well as other libraries and dependencies, installed properly. Check your composer.json file and ensure that you're using the correct versions for all required libraries.
...
"require": {
    "php": "^7.2.5",
    "fideloper/proxy": "^4.2",
    "fruitcake/laravel-cors": "^1.0",
    "guzzlehttp/guzzle": "^6.3",
    "laravel/framework": "^7.0",
    "laravel/tinker": "^2.0",
    "simplesoftwareio/simple-qrcode": "^3.0"
},
...
2. Check Your Composer Autoloading: Ensure that your composer autoloading is correct and configured properly. Make sure you have loaded the QrCodeServiceProvider, as shown in the given example:
'providers' => [SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,],
3. Configure Your App.php File: In your config/app.php file, ensure that you have added the QrCodeServiceProvider in the providers array and the required aliases for the facades, as shown below:
'providers' => [SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class,],
'aliases' => ['QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class,],
4. Reinstall the QR Code Package: If the above steps do not work, reinstall the qr-code library using Composer with the command given below:
composer update
5. Check Your Laravel Instance and Project Path: Ensure that you are running your Laravel project from the correct root path. Sometimes, if your composer.json file is not within the same folder structure as your Laravel instance, this error might occur. Make sure to run your Laravel project from the directory containing the composer.json file. 6. Clear Cache and Routes: Clear both route cache and Laravel's configuration cache using artisan commands:
php artisan route:clear && php artisan config:clear
Conclusion In conclusion, the error 'Class 'SimpleSoftwareIO\QrCode\QrCodeServiceProvider' not found' in Laravel 7 applications can be resolved by ensuring proper installation of dependencies and configurations with your project files. If you follow these steps and still encounter issues, consider reaching out to the package's developers for assistance or consult a qualified Laravel developer for further help.