Home > Article > PHP Framework > Solution to laravel $kernel->handle error report
Q: What should I do if I get an error laravel $kernel->handle when starting my project?
A: Check whether Controller.php exists in the app/Http/Controller directory.
Generally this problem is caused by accidentally deleting this file.
Q: How should I solve it?
A: Rebuild a laravel project
1. Use the command line to enter the directory where you want to store the project
2. Copy and paste composer.phar into this directory ( Optional, for students who have not configured environment variables)
3. Enter php composer.phar create-project --prefer-dist laravel/laravel AAA "5.5.*"
4. In In the app/Http/Controller directory of the new project, find Controller.php
5, copy it to the project where you reported the error, and refresh the page to solve the problem.
--prefer-dist = 首选dist下载的方式,速度快 laravel/laravel = 包名 AAA = 项目名称 “5.5.*” = 指定laravel版本
The above is the detailed content of Solution to laravel $kernel->handle error report. For more information, please follow other related articles on the PHP Chinese website!