junichimura/laravel-encrypt-storage-driver is a Laravel package.
It currently has 0 GitHub stars and 20 downloads on Packagist (latest version 1.0.0).
Install it with composer require junichimura/laravel-encrypt-storage-driver.
Discover more Laravel packages by junichimura
or browse all Laravel packages to compare alternatives.
Last updated
composer require junichimura/laravel-encrypt-storage-driver in your project folder.php artisan vendor:publish --tag=junichimura-encrypt_storage<?php
return [
'disks' => [
'encrypt_local' => [
'driver' => 'encrypt_local', // <- driver type enctypt_local
'root' => storage_path('app'),
],
];
$plainContents = 'content';
\Storage::driver('encrypt_local')->put('/store/path', $plainContents)
$plainContents = \Storage::driver('encrypt_local')->get('/store/path');
$file = request()->file('fileName');
$file->store('/store/path', 'encrypt_local');
// or
$file->storeAs('store/path', 'filename.extention', 'encrypt_local')