Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20강 이슈가 있습니다 #12

Closed
jicjjang opened this issue Feb 24, 2016 · 1 comment
Closed

20강 이슈가 있습니다 #12

jicjjang opened this issue Feb 24, 2016 · 1 comment

Comments

@jicjjang
Copy link

2016-02-24 3 16 59

20강 위 사진과 같은 부분에서 "Missing argument 2" 에러가 발생합니다.
$bindings와 $time 없이 아래와 같이 해주니 잘 돌아갑니다 :)

DB::listen(function($sql) {
    var_dump($sql);
});
@appkr
Copy link
Owner

appkr commented Feb 24, 2016

@jicjjang 지적 고맙습니다. 라라벨 5.2 부터는 모든 코어 이벤트가 이벤트 데이터로 객체를 던지게 바뀌었습니다. 해서 위 코드는

DB::listen(function ($event) {
    var_dump($event->sql);
    // var_dump($event->bindings);
    // var_dump($event->time);
});

처럼 바뀌어야 합니다. 반영해 놓도록 하겠습니다.

@appkr appkr closed this as completed Mar 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants