shanely
207
9
Laravel

Service Provider

Posted 3 years ago by shanely

Hi I am creating provider to listening the query events https://laravel.com/docs/5.2/database#listening-for-query-events

and this is what I enable

public function boot()
    {
        DB::listen(function ($query) {
               $query->sql
       
        });
    }


Now I don't know what to do next how to use this ?

Thank you in advance.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.