andersao / andersao/l5-repository
generate code bug, General SQL error
Đang mở
- Ngôn ngữ chính
- PHP
- Star
- 4.2k
- Fork
- 880
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
xxRepositoryEloquent.php
public function boot()
{
**$this->pushCriteria(app(RequestCriteria::class));**
}
xxCotroler.php
public function index()
{
**$this->repository->pushCriteria(app('Prettus\Repository\Criteria\RequestCriteria'));**
.......
}
url: http://crm.local/t?search=lorem
sql:
array:1 [▼
0 => array:3 [▼
"query" => "select * from `door_device_commands` where (`door_device_commands`.`cmd` = ?) and (`door_device_commands`.`cmd` = ?)"
"bindings" => array:2 [▼
0 => "lorem"
1 => "lorem"
]
"time" => 1.04
]
]
General SQL error
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.