This commit is contained in:
Halbe Bruno
2025-12-05 19:40:39 -03:00
commit f37bc712e6
4312 changed files with 359196 additions and 0 deletions

15
app/Models/Order.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
namespace App\Models;
use App\Core\Model;
class Order extends Model
{
protected $table = 'orders';
public function recent($limit = 5)
{
$stmt = $this->conn->prepare("SELECT * FROM orders ORDER BY id DESC LIMIT :limit");
$stmt->bindValue(':limit', $limit, \PDO::PARAM_INT);
$stmt->execute();
return $stmt->fetchAll();
}
}