File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 11
2+
23# 🚀Simple Laravel Encrypt Upload File
34[ ![ GitHub license] ( https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square )] ( https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE ) [ ![ Support me] ( https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square )] ( https://www.buymeacoffee.com/OBaAofN )
45
7980
8081 public function upload_file(Request $request)
8182 {
82- $file = 'encrypted_file.doc ';
83+ $file = 'encrypted_file.txt ';
8384 return FileSafe::download($file);
84- //This is to decrypt files to be downloaded.
85+ //decrypt files to be downloaded.
8586 }
8687 }
8788
89+ <h3 >View Raw File</h3 >
90+
91+ ...
92+ $file = 'encrypt_file.txt';
93+ return FileSafe::file($file)->raw();
94+ ...
95+
96+ <h2 >Contribution</h2 >
97+ ENG:<br >
98+ If you want to contribute this project and make it better, your help is very welcome.<br >
99+ IDN:<br >
100+ Jika Anda ingin berkontribusi dalam proyek ini dan menjadikannya lebih baik, bantuan Anda sangat kami harapkan.
101+
102+ ***
You can’t perform that action at this time.
0 commit comments