Q:

Determining If any log File Exists in storage log folder

Currently laravel is writing log to default logs folder in storage/logs. 
The logs folder also contains a .gitignore file.
How can i determine if  ANY *.log file exists in logs folder?

A:

You can check it with glob function :
$result = glob (base_path() . '/storage/logs/*.log');
if(count($result)) {
    // log files exist
}

note that base_path() is a laravel helper to get the path of project root directory.

