Solusi

#solusilaravel “Uncaught ReflectionException: Class view does not exist”

Jika kamu menggunakan framework laravel untuk mengembangkan aplikasi dan mendapati permasalahan “Uncaught ReflectionException: Class “view” does not exist“, inilah solusinya #solusilaravel #caridisini #kumpulansolusi

⚠️#permasalahan

PHP message: PHP Fatal error: Uncaught ReflectionException: Class “view” does not exist

15931#15931: *4628 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ReflectionException: Class "view" does not exist in /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php:912
Stack trace:
#0 /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(912): ReflectionClass->__construct()
#1 /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#2 /home/app/web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(933): Illuminate\Container\Container->resolve()
#3 /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#4 /home/app/web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(918): Illuminate\Container\Container->make()
#5 /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php(1454): Illuminate\Foundation\Application->make()
#6 /home/app/web/vendor/laravel/framework...PHP message: PHP Fatal error:  Uncaught ReflectionException: Class "view" does not exist in /home/app/web/vendor/laravel/framework/src/Illuminate/Container/Container.php:912

✅#solusi  

Jalankan perintah di bawah ini pada folder root tempat script Laravel berada.

composer dump-autoload
Uncaught ReflectionException: Class view does not exist