Whenever I try to extend a class I end up with
Fatal error: Class 'home\register\Create' not found in C:\xampp\htdocs\project\home\register\register.php on line 8
I have 2 file classes under the same directory first one an abstract class Create :
<?php
namespace home\register;
use home\libs\Tools\Sanitize\Sanitize as sanitize;
abstract class Create
{
    public $sanitize;
    function __construct ()
    {
        $this->sanitize = new sanitize();
        if (isset($_POST)){
            foreach ($_POST as $key => $value){
                if (!empty($_POST["$key"])){
                    $this->$key = $this->sanitize->clean($value);
                }
            }
        }
    }
    abstract function db_query($pdo_db_name, $password, $query, $host = 'localhost');
}
And a second class register which extends Create:
<?php
namespace home\register;
use PDO as pdo;
use home\libs\MainLogger\MainLogger as logger;
class register extends Create //Line 8 Error is thrown when extending the class
I can post the whole code but I doubt the problem is there. I've been trying to adapt to the structural design pattern as I see it as the tidiest way of handling a lot of classes
 
    