Home > PHP Framework > Laravel > Solution to laravel $kernel->handle error report

Solution to laravel $kernel->handle error report

藏色散人
Release: 2020-04-18 13:28:48
forward
3278 people have browsed it

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版本
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template