I am making an API with the Lumen framework and I would like to upload application files to an FTP, only I have not seen any documentation about it and I wanted to know if there is any documentation on how to upload files to an FTP with Lumen.
Thanks.
This function is not integrated in lumen by default as it happens in laravel, you have to install the Flysystem library, you can verify the process in this tutorial
The steps would be:
Require adapter for ftp league/flysystem-sftp
Register the service provider in the bootstrap/app.php file by adding this line:
Copy the flysystem.php configuration file from the package. That is to copy the file that is in the vendor/graham-campbell/flysystem/config/flysystem.php directory to the
config folder.
In the ftp section, you put your access data: