how to run live Laravel code on local computer, production mode to local mode

  laravel

when I run command

php artisan serve

it runs server and seems to be working properly. it show message
Starting Laravel development server: http://127.0.0.1:8000
[Wed Sep 15 11:33:05 2021] PHP 8.0.8 Development Server (http://127.0.0.1:8000) started

but when I go to google and try http://127.0.0.1:8000 it shows error
Warning: require(C:UsersMuhammad AdnanDownloadsschoolpublic/vendor/autoload.php): Failed to open stream: No such file or directory in C:UsersMuhammad AdnanDownloadsschoolpublicindex.php on line 24

Fatal error: Uncaught Error: Failed opening required ‘C:UsersMuhammad AdnanDownloadsschoolpublic/vendor/autoload.php’ (include_path=’C:xamppphpPEAR’) in C:UsersMuhammad AdnanDownloadsschoolpublicindex.php:24 Stack trace: #0 C:UsersMuhammad AdnanDownloadsschoolserver.php(21): require_once() #1 {main} thrown in C:UsersMuhammad AdnanDownloadsschoolpublicindex.php on line 24

I tried my best to placing index.php and server.php in public folder.
Any help would be appreciated. Thanks.

Source: Laravel

Leave a Reply