How to change SwiftMailer temporary folder in Laravel

Sometimes if you sending a lot of emails, it can make /tmp/ folder very quickly filled up with cache file, and in my case it make the Apache and MySQL failed to start. The message error in Apache error_log is Fatal Error Unable to create lock file: Bad file descriptor (9).

Continue reading