enable query log on tinker code example Example: db enable query log DB::enableQueryLog(); dd(DB::getQueryLog());