<?php
use Zizaco\Confide\ConfideUser;
// class User extends Eloquent {
class User extends ConfideUser {
public static $rules = array(
'username' => 'unique:users,username',
'email' => 'email'
);
protected $table = 'users';
protected $hidden = ['password'];
public function getAuthIdentifier()
{
return $this->getKey();
}
public function getAuthPassword()
{
return $this->password;
}
public function getRememberToken()
{
return $this->remember_token;
}
public function setRememberToken($value)
{
$this->remember_token = $value;
}
public function getRememberTokenName()
{
return 'remember_token';
}
public function getReminderEmail()
{
return $this->email;
}
function accountType() { return $this->belongsTo('AccountType'); }
function team() { return $this->hasOne('Team'); }
}
I got this FatalErrorException Maximum execution time of 30 seconds exceeded when I'm trying to update a field in my User model.
my UserController:
If I change it to
$user->save()
, yes it'll popThe username has already been taken
errormy composer.json
my User.php
That's it. I guess my code is similar to https://github.com/Zizaco/confide#update-an-user
Thanks in advance