debugging
Stream application logs in real-time from the terminal.
php artisan php artisan pail
Syntax
Syntax
php artisan pail [--filter=query] [--level=error]
Explanation
Tails the application log file and displays new entries in real-time. --filter narrows by log message content. --level shows only messages at or above the specified level (debug, info, warning, error).
Example
Example
php artisan pail --level=error
Explanation
Tails the application log file and displays new entries in real-time. --filter narrows by log message content. --level shows only messages at or above the specified level (debug, info, warning, error).