From f6b476e4f8f62e3ad3b0c8fcf27d651de8b291eb Mon Sep 17 00:00:00 2001 From: Yishak Date: Wed, 30 Oct 2024 01:11:17 +0300 Subject: [PATCH] Added Storage Link Functionality --- src/Controllers/FinalController.php | 5 ++++- src/Helpers/StorageLinker.php | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/Helpers/StorageLinker.php diff --git a/src/Controllers/FinalController.php b/src/Controllers/FinalController.php index 85290b5..d4f93ba 100644 --- a/src/Controllers/FinalController.php +++ b/src/Controllers/FinalController.php @@ -4,6 +4,7 @@ use Illuminate\Routing\Controller; use Froiden\LaravelInstaller\Helpers\InstalledFileManager; +use Froiden\LaravelInstaller\Helpers\StorageLinker; class FinalController extends Controller { @@ -11,11 +12,13 @@ class FinalController extends Controller * Update installed file and display finished view. * * @param InstalledFileManager $fileManager + * @param StorageLinker $storageLinker * @return \Illuminate\View\View */ - public function finish(InstalledFileManager $fileManager) + public function finish(InstalledFileManager $fileManager, StorageLinker $storageLinker) { $fileManager->update(); + $storageLinker->link(); return view('vendor.installer.finished'); } diff --git a/src/Helpers/StorageLinker.php b/src/Helpers/StorageLinker.php new file mode 100644 index 0000000..a40818c --- /dev/null +++ b/src/Helpers/StorageLinker.php @@ -0,0 +1,18 @@ +