change to user import endpoint

This commit is contained in:
marcio1002 2023-10-20 18:25:37 -03:00
parent ab87bf0be3
commit 7abbdbd056
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);
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);
return response()

View File

@ -98,7 +98,7 @@ class UsersWithSmartUsersImport implements ToCollection
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->extract($temp_extract_files_path);

View File

@ -74,6 +74,7 @@
"@php artisan config:clear --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"
},
"extra": {

View File

@ -294,7 +294,7 @@ return [
| storing reading or downloading. Here you can customize that path.
|
*/
'local_path' => storage_path('framework/cache/laravel-excel'),
'local_path' => storage_path('framework/cache/laravel-excel'),
/*
|--------------------------------------------------------------------------

View File

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