src/Database/Model.php
public function all()
    {
        $this->defaultTable();
        $sql = $this->sql;
        $this->reset();

        return DB::select($sql, PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, static::class);
    }
public function all()
    {
        $this->defaultTable();
        $sql = $this->sql;
        $this->reset();

        return DB::select($sql, PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, static::class);
    }
public function all ( ) { $ this -> defaultTable ( ) ; $ sql = $ this -> sql ; $ this -> reset ( ) ; return DB :: select ( $ sql , PDO :: FETCH_CLASS | PDO :: FETCH_PROPS_LATE , static :: class ) ; }
function to find all records in database.

@return array return array of ORM
function to find all records in database .