How Do I Get The Log of My Queries In Laravel?

dhtmldhtml Posts: 984
edited November 2018 in PHP

A very good example is this, I want to do:

     \App\Event::
      where(['receiver'=>Auth::user()->id])
      ->orwhere(function($query) {
        $query->orWhere('cat','comment');
        $query->orWhere('cat','post');
      })
      ->count();

How do I get the actual SQL query used for debugging sake?

Comments

Sign In or Register to comment.