H
H
Herman Coffman2021-08-03 12:04:13
Laravel
Herman Coffman, 2021-08-03 12:04:13

Why doesn't the local server (artisan serve) start?

Installed php, installed composer, installed laravel. Created a laravel project in phpstorm project. All that remains is to start the local server with php artisan serve, and it gives me an error:

PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Application" not found in C:\Users\User\PhpstormProjects\laravel\itProject\bootstrap\app.php:14
Stack trace:
#0 C:\Users\User\ PhpstormProjects\laravel\itProject\artisan(20): require_once()
#1 {main}
thrown in C:\Users\User\PhpstormProjects\laravel\itProject\bootstrap\app.php on line 14

Tried composer dump-autoload, delete vendor folder and composer install. It did not help, everything returned as it was. The laravel project is worth it. How to start all the same local server and fix the error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alfieros, 2021-08-03
@mrsexy

You either have an error in the path to the library, or you missed " ; " after the call. Check the latest model files that have been corrected.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question