How do I save laravel.log to Amazon AWS S3?

Posted 1 year ago by hellomars

Dear users,

I would like to save my laravel.log to S3. I have created a bucket on S3 and able to read and save a sample text file on S3 using Tinker.

I've changed the local storage line in config\filesystems.php from:

'default' => env('FILESYSTEM_DRIVER', 'local'),

to

 'default' => env('FILESYSTEM_CLOUD', 's3'),

But I still get a new log file in the local storage folder.... Who knows how to get this into S3?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.