Non-static method Model::hashPassword() should not be called statically, assuming $this from incompatible context
Non-static method Model::hashPassword() should not be called statically, assuming $this from incompatible context
make sure you have it declared static like so
public static function hashPassword()
{
#code ...
}