laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

部署到服务器后显示 Class "App\models\User" not found,本地测试正常

Open JunXiaoRuo opened this issue 1 year ago • 2 comments

  • Laravel Version: 8.83.27
  • PHP Version:8.0.27
  • Laravel-admin: 1.8.17

Description:

屏幕截图 2023-04-22 171156

Steps To Reproduce:

JunXiaoRuo avatar Apr 22 '23 09:04 JunXiaoRuo

image

JunXiaoRuo avatar Apr 22 '23 09:04 JunXiaoRuo

Change first character of "models" to upper case.

use App\Models\User;

If that doesn't help, show the User model php file

Ladel avatar Apr 22 '23 13:04 Ladel