Copy logs file to another path laravel

  laravel, local-storage

I want to get a copy of the logs file using programmability, I just tried to copy the files using this command

   $co= Storage::copy('logs/laravel-'.$start.'.log',$filename);
           dd($co);

but I have an error which says the file does not exist,
I believe that is because storage looking in the default driver of the config file, how can I tell laravel to look in logs folder when I want to run the copy command, is there any way to do that .

Source: Laravel

Leave a Reply