Postingan lainnya
php artisan serve error
PHP Warning: require(C:\Users\Lenovo\Downloads\sip-master\sip-master/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan on line 18
Warning: require(C:\Users\Lenovo\Downloads\sip-master\sip-master/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required 'C:\Users\Lenovo\Downloads\sip-master\sip-master/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan:18 Stack trace: #0 {main} thrown in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan on line 18
Fatal error: Uncaught Error: Failed opening required 'C:\Users\Lenovo\Downloads\sip-master\sip-master/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan:18 Stack trace: #0 {main} thrown in C:\Users\Lenovo\Downloads\sip-master\sip-master\artisan on line 18
2 Jawaban:
Kalau bertemu error php artisan serve
saat ingin menginstall atau menjalankan proyek Laravel:
Coba jalankan composer install
setelah itu composer dump-autoload
karena tidak ada konteks kamu menajalankan proyek dari repo github atau proyek laravel baru, ini saran jika kamu install proyek laravel baru, pakai command
composer create-project --prefer-dist laravel/laravel namaProyek
apakah project laravel yang kamu ingin jalankan adalah cloning dari repo github atau sumber kode lainnya? jika iya bisa jalankan composer install
dahulu