Skip to content

Commit 1bbb2eb

Browse files
author
arutyunyan
committed
update readme
1 parent 40e262b commit 1bbb2eb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

README.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,14 @@ Container::create(require __DIR__ . '/config/db.php');
2727
// Fetch data from the database
2828
$data =
2929
Users::all()
30-
->select([
31-
'login',
32-
'address',
33-
])
3430
->getCounter()
3531
->getConsumption()
3632
->order([
3733
'time' => 'desc',
3834
'counter_id',
3935
])
4036
->getResurs()
41-
->leftJoin('tarif')
42-
->select([
43-
Raw::expression("CONCAT(@name, ' (', FORMAT(@price, 0), ' р.)') AS tarif"),
44-
])
37+
->getTarif('left')
4538
->fetchAll();
4639

4740
echo "<pre>";

0 commit comments

Comments
 (0)