for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Contracts\Auth\Authenticatable;
class User implements Authenticatable
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* Get the name of the unique identifier for the user.
*
* @return string
*/
public function getAuthIdentifierName()
return 'id';
}
* Get the unique identifier for the user.
* @return mixed
public function getAuthIdentifier()
return 5;
* Get the password for the user.
public function getAuthPassword()
return 'somepassword';
* Get the token value for the "remember me" session.
public function getRememberToken()
return 'asjfasjfiajfi';
* Set the token value for the "remember me" session.
* @param string $value
* @return void
public function setRememberToken($value)
// TODO: Implement setRememberToken() method.
* Get the column name for the "remember me" token.
public function getRememberTokenName()
return 'remember_token';
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.