---
title: "Discussion on \"How to enable query log in laravel?\" | Hashnode"
description: "Discussion on \"How to enable query log in laravel?\". Modify the .env file at the root of your Laravel project and set DB_DEBUG=true. This will log SQL queries to your Laravel log files-storage/logs directory"
url: "https://hashnode.com/posts/how-to-enable-query-log-in-laravel/66265ee6d55977c985b68faa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to enable query log in laravel?](https://rajamuhammadasher.com/how-to-enable-query-log-in-laravel?utm_source=hashnode&utm_medium=feed)

Modify the .env file at the root of your Laravel project and set DB\_DEBUG=true. This will log SQL queries to your Laravel log files-storage/logs directory

Oct 7, 2023 · 2 min read · rajamuhammadasher.com  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#laravel](https://hashnode.com/tag/laravel)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

  
[View profile](https://hashnode.com/@rajamuhammadasher)

Full Stack Developer

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating &amp; making a difference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
