This commit is contained in:
root 2023-10-20 21:31:23 +00:00
commit 0512cda54b
5 changed files with 4 additions and 5 deletions

View File

@ -147,9 +147,8 @@ class UserController extends Controller
$filename = preg_replace("/imports\//", "", $user_imports_path); $filename = preg_replace("/imports\//", "", $user_imports_path);
Excel::import(new UsersWithSmartUsersImport($file_logos), $filename, $driver); Excel::import(new UsersWithSmartUsersImport($file_logos), $user_imports_path, $driver);
sleep(2000);
Storage::disk($driver)->delete($filename); Storage::disk($driver)->delete($filename);
return response() return response()

View File

@ -98,7 +98,7 @@ class UsersWithSmartUsersImport implements ToCollection
private function uploadProfilePictures() private function uploadProfilePictures()
{ {
$temp_extract_files_path = storage_path('app/extract'); $temp_extract_files_path = storage_path('app/extracts');
$zip = Zip::open($this->files_logos); $zip = Zip::open($this->files_logos);
$zip->extract($temp_extract_files_path); $zip->extract($temp_extract_files_path);

View File

@ -74,6 +74,7 @@
"@php artisan config:clear --ansi", "@php artisan config:clear --ansi",
"@php artisan schedule:clear-cache --ansi" "@php artisan schedule:clear-cache --ansi"
], ],
"authorized-files": "sudo chown -R www-data:www-data storage/ storage/framework/cache storage/framework/cache/data bootstrap/cache/ public/",
"dev": "@php artisan serve --host=0.0.0.0 --port=8080 --ansi" "dev": "@php artisan serve --host=0.0.0.0 --port=8080 --ansi"
}, },
"extra": { "extra": {

View File

@ -1,3 +1,2 @@
* *
!data/
!.gitignore !.gitignore