Php 无法在Laravel中重新声明类用户
此错误的来源是由frozennode维护的管理员包 错误: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
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
对我的情况有帮助