- Notifications
You must be signed in to change notification settings - Fork2
License
NotificationsYou must be signed in to change notification settings
ragingdave/flysystem-sftp-laravel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package provides a service provider to add the sftp flysystem-driver to Laravel Storage mechanisms.
This package is no longer needed in Laravel Version 5.6 and up. See the Laravel Docs for details.https://laravel.com/docs/5.6/filesystem#driver-prerequisites
In order to install this package, simply require the package
composer require ragingdave/flysystem-sftp-laravel
Add the service provider toconfig/app.php
:
RagingDave\Filesystem\Sftp\SftpServiceProvider::class,
To configure an sftp connection, add a new configuration toconfig/filesystems.php
:
'disks' => ['sftp' => ['driver' =>'sftp','host' =>env('SFTP_HOST'),'port' =>env('SFTP_PORT',22),'username' =>env('SFTP_USERNAME'),'password' =>env('SFTP_PASSWORD'),'privateKey' =>storage_path('keys') .'/sftp_key',// This can also be the full private key contents'root' =>env('SFTP_ROOT'),'timeout' =>env('SFTP_TIMEOUT',10), ],],
Additional options thatthephpleague/flysystem-sftp
supports can be passed as all options are passed-through to the adapter.
About
No description or website provided.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.