andersao / andersao/l5-repository

generate code bug, General SQL error

Đang mở
#311 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.