Did you install the composer dependencies?
composer install
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I just started to try and create a Laravel project and have successfully done so, but when I start the server it immediately shows that I have an error in my index.php file for this following line of code (require_once DIR.'/../bootstrap/app.php') ->handleRequest(Request::capture()). I've tried to change versions and it is still not fixed. Keep in mind I haven't change the template code. It also points to this code having an error require_once $publicPath.'/index.php' in the \vendor\laravel\framework\src\Illuminate\Foundation\resources\server .php directory.
Please or to participate in this conversation.