Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法在Laravel中重新声明类用户_Php_Laravel 4_Administrator - Fatal编程技术网

Php 无法在Laravel中重新声明类用户

Php 无法在Laravel中重新声明类用户,php,laravel-4,administrator,Php,Laravel 4,Administrator,此错误的来源是由frozennode维护的管理员包 错误: Symfony \ Component \ Debug \ Exception \ FatalErrorException Cannot redeclare class User open: /home/itrekker/public_html/app/models/User.php <?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Remin

此错误的来源是由frozennode维护的管理员包

错误:

 Symfony \ Component \ Debug \ Exception \ FatalErrorException
 Cannot redeclare class User
 open: /home/itrekker/public_html/app/models/User.php
 <?php

 use Illuminate\Auth\UserInterface;
 use Illuminate\Auth\Reminders\RemindableInterface;

 class User extends Eloquent implements UserInterface, RemindableInterface {
    protected $table = "user";
    protected $hidden = ["password"];
    public function getAuthIdentifier(){
        return $this->getKey();
参考资料:

 Symfony \ Component \ Debug \ Exception \ FatalErrorException
 Cannot redeclare class User
 open: /home/itrekker/public_html/app/models/User.php
 <?php

 use Illuminate\Auth\UserInterface;
 use Illuminate\Auth\Reminders\RemindableInterface;

 class User extends Eloquent implements UserInterface, RemindableInterface {
    protected $table = "user";
    protected $hidden = ["password"];
    public function getAuthIdentifier(){
        return $this->getKey();
open:/home/itrekker/public\u html/app/models/User.php

您的项目中是否有另一个
用户
类(多个)可用,这很明显是因为出现了错误消息
无法重新声明类用户
。重命名用户模型后,您是否进行了
编写器转储自动加载
?您是否解决了此问题?我有一个非常类似的问题。
composer dump autoload
对我的情况有帮助