I downloaded a laravel project from a shared hosting and I want to edit him in my localhost but when I type out the home adress: localhost:8000/ it shows me those two errors :
Warning: require_once(C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php): failed to open stream: No such file or directory in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21.
Fatal error: require_once(): Failed opening required 'C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21.
then I found a solution which is to remove some code from the server.php
the line :
require_once __DIR__.'/public/index.php';
Become :
require_once __DIR__.'/index.php';
then the error fixed and the website worked in my localhost but the design is gone , it show me a static html website without any color or image or any thing.
composer dump autoload
,clear cache for all view route config
and see if that helps – somsgod