Merge remote-tracking branch 'origin/oasis' into oasis

This commit is contained in:
Peter Papp
2021-05-24 16:51:14 +02:00
98 changed files with 1845 additions and 1845 deletions

File diff suppressed because one or more lines are too long

View File

@@ -29,7 +29,7 @@ class CreateNewUser implements CreatesNewUsers
} }
Validator::make($input, [ Validator::make($input, [
'name' => ['required', 'string', 'max:255'], 'name' => ['required', 'string', 'max:255'],
'email' => [ 'email' => [
'required', 'required',
'string', 'string',
@@ -41,7 +41,7 @@ class CreateNewUser implements CreatesNewUsers
])->validate(); ])->validate();
$user = User::create([ $user = User::create([
'email' => $input['email'], 'email' => $input['email'],
'password' => bcrypt($input['password']), 'password' => bcrypt($input['password']),
]); ]);
@@ -50,7 +50,7 @@ class CreateNewUser implements CreatesNewUsers
$user $user
->settings() ->settings()
->create([ ->create([
'name' => $input['name'], 'name' => $input['name'],
'storage_capacity' => $settings['storage_default'], 'storage_capacity' => $settings['storage_default'],
]); ]);

View File

@@ -21,7 +21,7 @@ class UpdateUserPassword implements UpdatesUserPasswords
{ {
Validator::make($input, [ Validator::make($input, [
'current_password' => ['required', 'string'], 'current_password' => ['required', 'string'],
'password' => $this->passwordRules(), 'password' => $this->passwordRules(),
])->after(function ($validator) use ($user, $input) { ])->after(function ($validator) use ($user, $input) {
if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) { if (! isset($input['current_password']) || ! Hash::check($input['current_password'], $user->password)) {
$validator->errors()->add('current_password', __('The provided password does not match your current password.')); $validator->errors()->add('current_password', __('The provided password does not match your current password.'));

View File

@@ -34,7 +34,7 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
$this->updateVerifiedUser($user, $input); $this->updateVerifiedUser($user, $input);
} else { } else {
$user->forceFill([ $user->forceFill([
'name' => $input['name'], 'name' => $input['name'],
'email' => $input['email'], 'email' => $input['email'],
])->save(); ])->save();
} }
@@ -50,8 +50,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
protected function updateVerifiedUser($user, array $input) protected function updateVerifiedUser($user, array $input)
{ {
$user->forceFill([ $user->forceFill([
'name' => $input['name'], 'name' => $input['name'],
'email' => $input['email'], 'email' => $input['email'],
'email_verified_at' => null, 'email_verified_at' => null,
])->save(); ])->save();

View File

@@ -87,24 +87,24 @@ class SetupDevEnvironment extends Command
private function create_admin(): void private function create_admin(): void
{ {
$user = User::forceCreate([ $user = User::forceCreate([
'role' => 'admin', 'role' => 'admin',
'email' => 'howdy@hi5ve.digital', 'email' => 'howdy@hi5ve.digital',
'password' => bcrypt('vuefilemanager'), 'password' => bcrypt('vuefilemanager'),
]); ]);
$user $user
->settings() ->settings()
->create([ ->create([
'avatar' => 'avatars/avatar-01.png', 'avatar' => 'avatars/avatar-01.png',
'storage_capacity' => 5, 'storage_capacity' => 5,
'name' => 'Jane Doe', 'name' => 'Jane Doe',
'address' => $this->faker->address, 'address' => $this->faker->address,
'state' => $this->faker->state, 'state' => $this->faker->state,
'city' => $this->faker->city, 'city' => $this->faker->city,
'postal_code' => $this->faker->postcode, 'postal_code' => $this->faker->postcode,
'country' => $this->faker->randomElement(['SK', 'CZ', 'DE', 'FR']), 'country' => $this->faker->randomElement(['SK', 'CZ', 'DE', 'FR']),
'phone_number' => $this->faker->phoneNumber, 'phone_number' => $this->faker->phoneNumber,
'timezone' => $this->faker->randomElement(['+1.0', '+2.0', '+3.0']), 'timezone' => $this->faker->randomElement(['+1.0', '+2.0', '+3.0']),
]); ]);
Storage::putFileAs('avatars', storage_path('demo/avatars/avatar-01.png'), 'avatar-01.png', 'private'); Storage::putFileAs('avatars', storage_path('demo/avatars/avatar-01.png'), 'avatar-01.png', 'private');
@@ -127,24 +127,24 @@ class SetupDevEnvironment extends Command
], ],
])->each(function ($user) { ])->each(function ($user) {
$newbie = User::forceCreate([ $newbie = User::forceCreate([
'role' => 'user', 'role' => 'user',
'email' => $this->faker->email, 'email' => $this->faker->email,
'password' => bcrypt('vuefilemanager'), 'password' => bcrypt('vuefilemanager'),
]); ]);
$newbie $newbie
->settings() ->settings()
->create([ ->create([
'avatar' => "avatars/{$user['avatar']}", 'avatar' => "avatars/{$user['avatar']}",
'storage_capacity' => 5, 'storage_capacity' => 5,
'name' => $this->faker->name, 'name' => $this->faker->name,
'address' => $this->faker->address, 'address' => $this->faker->address,
'state' => $this->faker->state, 'state' => $this->faker->state,
'city' => $this->faker->city, 'city' => $this->faker->city,
'postal_code' => $this->faker->postcode, 'postal_code' => $this->faker->postcode,
'country' => $this->faker->randomElement(['SK', 'CZ', 'DE', 'FR']), 'country' => $this->faker->randomElement(['SK', 'CZ', 'DE', 'FR']),
'phone_number' => $this->faker->phoneNumber, 'phone_number' => $this->faker->phoneNumber,
'timezone' => $this->faker->randomElement(['+1.0', '+2.0', '+3.0']), 'timezone' => $this->faker->randomElement(['+1.0', '+2.0', '+3.0']),
]); ]);
Storage::putFileAs('avatars', storage_path("demo/avatars/{$user['avatar']}"), $user['avatar'], 'private'); Storage::putFileAs('avatars', storage_path("demo/avatars/{$user['avatar']}"), $user['avatar'], 'private');
@@ -165,14 +165,14 @@ class SetupDevEnvironment extends Command
$shared_folder = Folder::factory(Folder::class) $shared_folder = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Shared Folder', 'name' => 'Shared Folder',
'emoji' => [ 'emoji' => [
'codes' => '1F680', 'codes' => '1F680',
'char' => '🚀', 'char' => '🚀',
'name' => 'rocket', 'name' => 'rocket',
'category' => 'Travel & Places (transport-air)', 'category' => 'Travel & Places (transport-air)',
'group' => 'Travel & Places', 'group' => 'Travel & Places',
'subgroup' => 'transport-air', 'subgroup' => 'transport-air',
], ],
'created_at' => now(), 'created_at' => now(),
@@ -180,35 +180,35 @@ class SetupDevEnvironment extends Command
Share::factory(Share::class) Share::factory(Share::class)
->create([ ->create([
'type' => 'folder', 'type' => 'folder',
'item_id' => $shared_folder->id, 'item_id' => $shared_folder->id,
'user_id' => $user->id, 'user_id' => $user->id,
'permission' => 'editor', 'permission' => 'editor',
'is_protected' => false, 'is_protected' => false,
'password' => null, 'password' => null,
'expire_in' => null, 'expire_in' => null,
]); ]);
$peters_files = Folder::factory(Folder::class) $peters_files = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $shared_folder->id, 'parent_id' => $shared_folder->id,
'author' => 'visitor', 'author' => 'visitor',
'name' => "Peter's Files", 'name' => "Peter's Files",
]); ]);
// 2. // 2.
$random_pics = Folder::factory(Folder::class) $random_pics = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Random Pics', 'name' => 'Random Pics',
'emoji' => [ 'emoji' => [
'codes' => '1F4F7', 'codes' => '1F4F7',
'char' => '📷', 'char' => '📷',
'name' => 'camera', 'name' => 'camera',
'category' => 'Objects (light & video)', 'category' => 'Objects (light & video)',
'group' => 'Objects', 'group' => 'Objects',
'subgroup' => 'light & video', 'subgroup' => 'light & video',
], ],
'created_at' => now()->subMinutes(1), 'created_at' => now()->subMinutes(1),
@@ -216,32 +216,32 @@ class SetupDevEnvironment extends Command
$nature = Folder::factory(Folder::class) $nature = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $random_pics->id, 'parent_id' => $random_pics->id,
'author' => 'user', 'author' => 'user',
'name' => 'Nature', 'name' => 'Nature',
'emoji' => [ 'emoji' => [
'codes' => '26F0', 'codes' => '26F0',
'char' => '⛰', 'char' => '⛰',
'name' => 'mountain', 'name' => 'mountain',
'category' => 'Travel & Places (place-geographic)', 'category' => 'Travel & Places (place-geographic)',
'group' => 'Travel & Places', 'group' => 'Travel & Places',
'subgroup' => 'place-geographic', 'subgroup' => 'place-geographic',
], ],
]); ]);
$apartments = Folder::factory(Folder::class) $apartments = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $random_pics->id, 'parent_id' => $random_pics->id,
'author' => 'user', 'author' => 'user',
'name' => 'Apartments', 'name' => 'Apartments',
'emoji' => [ 'emoji' => [
'codes' => '1F3E0', 'codes' => '1F3E0',
'char' => '🏠', 'char' => '🏠',
'name' => 'house', 'name' => 'house',
'category' => 'Travel & Places (place-building)', 'category' => 'Travel & Places (place-building)',
'group' => 'Travel & Places', 'group' => 'Travel & Places',
'subgroup' => 'place-building', 'subgroup' => 'place-building',
], ],
]); ]);
@@ -249,87 +249,87 @@ class SetupDevEnvironment extends Command
// 3. // 3.
$playable_media = Folder::factory(Folder::class) $playable_media = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Playable Media', 'name' => 'Playable Media',
'created_at' => now()->subMinutes(2), 'created_at' => now()->subMinutes(2),
]); ]);
$video = Folder::factory(Folder::class) $video = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $playable_media->id, 'parent_id' => $playable_media->id,
'author' => 'user', 'author' => 'user',
'name' => 'Video', 'name' => 'Video',
]); ]);
$audio = Folder::factory(Folder::class) $audio = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $playable_media->id, 'parent_id' => $playable_media->id,
'author' => 'user', 'author' => 'user',
'name' => 'Audio', 'name' => 'Audio',
]); ]);
// 4. // 4.
$multi_level = Folder::factory(Folder::class) $multi_level = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Multi Level Folder', 'name' => 'Multi Level Folder',
'created_at' => now()->subMinutes(3), 'created_at' => now()->subMinutes(3),
]); ]);
$first_level = Folder::factory(Folder::class) $first_level = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $multi_level->id, 'parent_id' => $multi_level->id,
'author' => 'user', 'author' => 'user',
'name' => 'First Level', 'name' => 'First Level',
]); ]);
$second_level = Folder::factory(Folder::class) $second_level = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $first_level->id, 'parent_id' => $first_level->id,
'author' => 'user', 'author' => 'user',
'name' => 'Second Level', 'name' => 'Second Level',
]); ]);
$third_level = Folder::factory(Folder::class) $third_level = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'parent_id' => $second_level->id, 'parent_id' => $second_level->id,
'author' => 'user', 'author' => 'user',
'name' => 'Third Level', 'name' => 'Third Level',
]); ]);
// 5. // 5.
$documents = Folder::factory(Folder::class) $documents = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Documents', 'name' => 'Documents',
'created_at' => now()->subMinutes(4), 'created_at' => now()->subMinutes(4),
]); ]);
Share::factory(Share::class) Share::factory(Share::class)
->create([ ->create([
'type' => 'folder', 'type' => 'folder',
'item_id' => $documents->id, 'item_id' => $documents->id,
'user_id' => $user->id, 'user_id' => $user->id,
'permission' => 'editor', 'permission' => 'editor',
'is_protected' => false, 'is_protected' => false,
'password' => null, 'password' => null,
'expire_in' => null, 'expire_in' => null,
]); ]);
// 6. // 6.
$videohive = Folder::factory(Folder::class) $videohive = Folder::factory(Folder::class)
->create([ ->create([
'user_id' => $user->id, 'user_id' => $user->id,
'author' => 'user', 'author' => 'user',
'name' => 'Videohive by MakingCG', 'name' => 'Videohive by MakingCG',
'created_at' => now()->subMinutes(5), 'created_at' => now()->subMinutes(5),
]); ]);
@@ -345,22 +345,22 @@ class SetupDevEnvironment extends Command
// Get documents to root directory // Get documents to root directory
collect([ collect([
[ [
'name' => 'Random Document', 'name' => 'Random Document',
'basename' => 'Licence.pdf', 'basename' => 'Licence.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'School Report', 'name' => 'School Report',
'basename' => 'Project Notes.pdf', 'basename' => 'Project Notes.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Personal Savings', 'name' => 'Personal Savings',
'basename' => 'School Report.pages', 'basename' => 'School Report.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
[ [
'name' => 'Top Secret Files', 'name' => 'Top Secret Files',
'basename' => 'Stories of the Night Skies.pages', 'basename' => 'Stories of the Night Skies.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
@@ -373,14 +373,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => null, 'folder_id' => null,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file['name'], 'name' => $file['name'],
'basename' => $basename, 'basename' => $basename,
'type' => 'file', 'type' => 'file',
'author' => 'user', 'author' => 'user',
'mimetype' => $file['mimetype'], 'mimetype' => $file['mimetype'],
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -388,22 +388,22 @@ class SetupDevEnvironment extends Command
// Get documents to documents folder // Get documents to documents folder
collect([ collect([
[ [
'name' => 'Home Improvement', 'name' => 'Home Improvement',
'basename' => 'Licence.pdf', 'basename' => 'Licence.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Project Notes', 'name' => 'Project Notes',
'basename' => 'Project Notes.pdf', 'basename' => 'Project Notes.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Personal Savings', 'name' => 'Personal Savings',
'basename' => 'School Report.pages', 'basename' => 'School Report.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
[ [
'name' => 'License', 'name' => 'License',
'basename' => 'Stories of the Night Skies.pages', 'basename' => 'Stories of the Night Skies.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
@@ -416,14 +416,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $documents->id, 'folder_id' => $documents->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file['name'], 'name' => $file['name'],
'basename' => $basename, 'basename' => $basename,
'type' => 'file', 'type' => 'file',
'author' => 'user', 'author' => 'user',
'mimetype' => $file['mimetype'], 'mimetype' => $file['mimetype'],
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -431,12 +431,12 @@ class SetupDevEnvironment extends Command
// Get documents to shared folder // Get documents to shared folder
collect([ collect([
[ [
'name' => 'Home plan', 'name' => 'Home plan',
'basename' => 'Licence.pdf', 'basename' => 'Licence.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Software Licence', 'name' => 'Software Licence',
'basename' => 'Project Notes.pdf', 'basename' => 'Project Notes.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
@@ -449,14 +449,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $shared_folder->id, 'folder_id' => $shared_folder->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file['name'], 'name' => $file['name'],
'basename' => $basename, 'basename' => $basename,
'type' => 'file', 'type' => 'file',
'author' => 'user', 'author' => 'user',
'mimetype' => $file['mimetype'], 'mimetype' => $file['mimetype'],
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -464,37 +464,37 @@ class SetupDevEnvironment extends Command
// Get documents to peter's files folder // Get documents to peter's files folder
collect([ collect([
[ [
'name' => 'Project Backup', 'name' => 'Project Backup',
'basename' => 'Licence.pdf', 'basename' => 'Licence.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Yearly report', 'name' => 'Yearly report',
'basename' => 'Project Notes.pdf', 'basename' => 'Project Notes.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Work Update', 'name' => 'Work Update',
'basename' => 'School Report.pages', 'basename' => 'School Report.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
[ [
'name' => 'Person Writing on Notebook', 'name' => 'Person Writing on Notebook',
'basename' => 'Stories of the Night Skies.pages', 'basename' => 'Stories of the Night Skies.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
[ [
'name' => 'Blank Business Composition Computer', 'name' => 'Blank Business Composition Computer',
'basename' => 'Licence.pdf', 'basename' => 'Licence.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => '2020 April - Export', 'name' => '2020 April - Export',
'basename' => 'Project Notes.pdf', 'basename' => 'Project Notes.pdf',
'mimetype' => 'pdf', 'mimetype' => 'pdf',
], ],
[ [
'name' => 'Ballpen Blur Close Up Computer', 'name' => 'Ballpen Blur Close Up Computer',
'basename' => 'School Report.pages', 'basename' => 'School Report.pages',
'mimetype' => 'pages', 'mimetype' => 'pages',
], ],
@@ -507,14 +507,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $peters_files->id, 'folder_id' => $peters_files->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file['name'], 'name' => $file['name'],
'basename' => $basename, 'basename' => $basename,
'type' => 'file', 'type' => 'file',
'author' => 'visitor', 'author' => 'visitor',
'mimetype' => $file['mimetype'], 'mimetype' => $file['mimetype'],
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -534,14 +534,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $videohive->id, 'folder_id' => $videohive->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'video', 'type' => 'video',
'author' => 'user', 'author' => 'user',
'mimetype' => 'mp4', 'mimetype' => 'mp4',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -558,14 +558,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $video->id, 'folder_id' => $video->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'video', 'type' => 'video',
'author' => 'user', 'author' => 'user',
'mimetype' => 'mp4', 'mimetype' => 'mp4',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -582,14 +582,14 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $audio->id, 'folder_id' => $audio->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'audio', 'type' => 'audio',
'author' => 'user', 'author' => 'user',
'mimetype' => 'mp3', 'mimetype' => 'mp3',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -618,15 +618,15 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => null, 'folder_id' => null,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'image', 'type' => 'image',
'author' => 'user', 'author' => 'user',
'mimetype' => 'jpg', 'mimetype' => 'jpg',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'thumbnail' => "thumbnail-$basename", 'thumbnail' => "thumbnail-$basename",
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -650,15 +650,15 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $apartments->id, 'folder_id' => $apartments->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'image', 'type' => 'image',
'author' => 'user', 'author' => 'user',
'mimetype' => 'jpg', 'mimetype' => 'jpg',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'thumbnail' => "thumbnail-$basename", 'thumbnail' => "thumbnail-$basename",
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -686,15 +686,15 @@ class SetupDevEnvironment extends Command
// Create file record // Create file record
File::create([ File::create([
'folder_id' => $nature->id, 'folder_id' => $nature->id,
'user_id' => $user->id, 'user_id' => $user->id,
'name' => $file, 'name' => $file,
'basename' => $basename, 'basename' => $basename,
'type' => 'image', 'type' => 'image',
'author' => 'user', 'author' => 'user',
'mimetype' => 'jpg', 'mimetype' => 'jpg',
'filesize' => rand(1000000, 4000000), 'filesize' => rand(1000000, 4000000),
'thumbnail' => "thumbnail-$basename", 'thumbnail' => "thumbnail-$basename",
'created_at' => now()->subMinutes(rand(1, 5)), 'created_at' => now()->subMinutes(rand(1, 5)),
]); ]);
}); });
@@ -712,13 +712,13 @@ class SetupDevEnvironment extends Command
$images->each(function ($id) use ($user) { $images->each(function ($id) use ($user) {
Share::create([ Share::create([
'user_id' => $user->id, 'user_id' => $user->id,
'item_id' => $id, 'item_id' => $id,
'type' => 'file', 'type' => 'file',
'is_protected' => false, 'is_protected' => false,
'permission' => 'editor', 'permission' => 'editor',
'password' => null, 'password' => null,
'expire_in' => null, 'expire_in' => null,
]); ]);
}); });
@@ -729,13 +729,13 @@ class SetupDevEnvironment extends Command
$files->each(function ($id) use ($user) { $files->each(function ($id) use ($user) {
Share::create([ Share::create([
'user_id' => $user->id, 'user_id' => $user->id,
'item_id' => $id, 'item_id' => $id,
'type' => 'file', 'type' => 'file',
'is_protected' => false, 'is_protected' => false,
'permission' => 'editor', 'permission' => 'editor',
'password' => null, 'password' => null,
'expire_in' => null, 'expire_in' => null,
]); ]);
}); });
} }
@@ -748,108 +748,108 @@ class SetupDevEnvironment extends Command
// Get options // Get options
collect([ collect([
[ [
'name' => 'setup_wizard_database', 'name' => 'setup_wizard_database',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'app_title', 'name' => 'app_title',
'value' => 'VueFileManager', 'value' => 'VueFileManager',
], ],
[ [
'name' => 'app_description', 'name' => 'app_description',
'value' => 'Your self-hosted storage cloud software powered by Laravel and Vue', 'value' => 'Your self-hosted storage cloud software powered by Laravel and Vue',
], ],
[ [
'name' => 'app_logo', 'name' => 'app_logo',
'value' => 'system/logo.svg', 'value' => 'system/logo.svg',
], ],
[ [
'name' => 'app_logo_horizontal', 'name' => 'app_logo_horizontal',
'value' => 'system/logo-horizontal.svg', 'value' => 'system/logo-horizontal.svg',
], ],
[ [
'name' => 'app_favicon', 'name' => 'app_favicon',
'value' => 'system/favicon.png', 'value' => 'system/favicon.png',
], ],
[ [
'name' => 'app_og_image', 'name' => 'app_og_image',
'value' => 'system/og-image.jpg', 'value' => 'system/og-image.jpg',
], ],
[ [
'name' => 'app_touch_icon', 'name' => 'app_touch_icon',
'value' => 'system/touch-icon.png', 'value' => 'system/touch-icon.png',
], ],
[ [
'name' => 'google_analytics', 'name' => 'google_analytics',
'value' => '', 'value' => '',
], ],
[ [
'name' => 'contact_email', 'name' => 'contact_email',
'value' => '', 'value' => '',
], ],
[ [
'name' => 'registration', 'name' => 'registration',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'payments_active', 'name' => 'payments_active',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'storage_limitation', 'name' => 'storage_limitation',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'storage_default', 'name' => 'storage_default',
'value' => 5, 'value' => 5,
], ],
[ [
'name' => 'setup_wizard_success', 'name' => 'setup_wizard_success',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'license', 'name' => 'license',
'value' => $this->license, 'value' => $this->license,
], ],
[ [
'name' => 'purchase_code', 'name' => 'purchase_code',
'value' => '26b889eb-3602-4bf2-beb3-3sc378fcf484', 'value' => '26b889eb-3602-4bf2-beb3-3sc378fcf484',
], ],
[ [
'name' => 'billing_address', 'name' => 'billing_address',
'value' => 'Palo Alto 20', 'value' => 'Palo Alto 20',
], ],
[ [
'name' => 'billing_city', 'name' => 'billing_city',
'value' => 'Palo Alto', 'value' => 'Palo Alto',
], ],
[ [
'name' => 'billing_country', 'name' => 'billing_country',
'value' => 'US', 'value' => 'US',
], ],
[ [
'name' => 'billing_name', 'name' => 'billing_name',
'value' => 'VueFileManager Inc.', 'value' => 'VueFileManager Inc.',
], ],
[ [
'name' => 'billing_phone_number', 'name' => 'billing_phone_number',
'value' => '312343141243214', 'value' => '312343141243214',
], ],
[ [
'name' => 'billing_postal_code', 'name' => 'billing_postal_code',
'value' => '43213', 'value' => '43213',
], ],
[ [
'name' => 'billing_state', 'name' => 'billing_state',
'value' => 'California', 'value' => 'California',
], ],
[ [
'name' => 'billing_vat_number', 'name' => 'billing_vat_number',
'value' => '41241241234', 'value' => '41241241234',
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });

View File

@@ -66,27 +66,27 @@ class SetupOasisEnvironment extends Command
collect([ collect([
[ [
'name' => 'app_title', 'name' => 'app_title',
'value' => 'Oasis', 'value' => 'Oasis',
], ],
[ [
'name' => 'app_description', 'name' => 'app_description',
'value' => 'Chytrý, bezpečný, pohodlný šanon vždy s Vámi.', 'value' => 'Chytrý, bezpečný, pohodlný šanon vždy s Vámi.',
], ],
[ [
'name' => 'app_logo', 'name' => 'app_logo',
'value' => 'system/logo.png', 'value' => 'system/logo.png',
], ],
[ [
'name' => 'app_logo_horizontal', 'name' => 'app_logo_horizontal',
'value' => 'system/logo-horizontal.png', 'value' => 'system/logo-horizontal.png',
], ],
[ [
'name' => 'app_favicon', 'name' => 'app_favicon',
'value' => 'system/favicon.png', 'value' => 'system/favicon.png',
], ],
[ [
'name' => 'app_og_image', 'name' => 'app_og_image',
'value' => 'system/oasis-og-image.jpg', 'value' => 'system/oasis-og-image.jpg',
], ],
])->each(function ($option) { ])->each(function ($option) {

View File

@@ -69,104 +69,104 @@ class SetupProdEnvironment extends Command
// Get options // Get options
collect([ collect([
[ [
'name' => 'setup_wizard_database', 'name' => 'setup_wizard_database',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'app_title', 'name' => 'app_title',
'value' => 'VueFileManager', 'value' => 'VueFileManager',
], ],
[ [
'name' => 'app_description', 'name' => 'app_description',
'value' => 'Your self-hosted storage cloud software powered by Laravel and Vue', 'value' => 'Your self-hosted storage cloud software powered by Laravel and Vue',
], ],
[ [
'name' => 'app_logo', 'name' => 'app_logo',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'app_logo_horizontal', 'name' => 'app_logo_horizontal',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'app_favicon', 'name' => 'app_favicon',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'app_og_image', 'name' => 'app_og_image',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'app_touch_icon', 'name' => 'app_touch_icon',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'google_analytics', 'name' => 'google_analytics',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'contact_email', 'name' => 'contact_email',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'registration', 'name' => 'registration',
'value' => 0, 'value' => 0,
], ],
[ [
'name' => 'storage_limitation', 'name' => 'storage_limitation',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'storage_default', 'name' => 'storage_default',
'value' => 5, 'value' => 5,
], ],
[ [
'name' => 'setup_wizard_success', 'name' => 'setup_wizard_success',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'license', 'name' => 'license',
'value' => $this->license, 'value' => $this->license,
], ],
[ [
'name' => 'purchase_code', 'name' => 'purchase_code',
'value' => '26b889eb-3602-4bf2-beb3-3sc378fcf484', 'value' => '26b889eb-3602-4bf2-beb3-3sc378fcf484',
], ],
[ [
'name' => 'billing_address', 'name' => 'billing_address',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_city', 'name' => 'billing_city',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_country', 'name' => 'billing_country',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_name', 'name' => 'billing_name',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_phone_number', 'name' => 'billing_phone_number',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_postal_code', 'name' => 'billing_postal_code',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_state', 'name' => 'billing_state',
'value' => null, 'value' => null,
], ],
[ [
'name' => 'billing_vat_number', 'name' => 'billing_vat_number',
'value' => null, 'value' => null,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });
@@ -178,8 +178,8 @@ class SetupProdEnvironment extends Command
private function create_admin(): void private function create_admin(): void
{ {
$user = User::forceCreate([ $user = User::forceCreate([
'role' => 'admin', 'role' => 'admin',
'email' => 'howdy@hi5ve.digital', 'email' => 'howdy@hi5ve.digital',
'password' => bcrypt('vuefilemanager'), 'password' => bcrypt('vuefilemanager'),
]); ]);
@@ -187,7 +187,7 @@ class SetupProdEnvironment extends Command
->settings() ->settings()
->create([ ->create([
'storage_capacity' => 5, 'storage_capacity' => 5,
'name' => 'Admin', 'name' => 'Admin',
]); ]);
// Show user credentials // Show user credentials

View File

@@ -34,10 +34,10 @@ class DashboardController extends Controller
)->format(); )->format();
return [ return [
'license' => get_setting('license'), 'license' => get_setting('license'),
'app_version' => config('vuefilemanager.version'), 'app_version' => config('vuefilemanager.version'),
'total_users' => User::count(), 'total_users' => User::count(),
'total_used_space' => $storage_usage, 'total_used_space' => $storage_usage,
'total_premium_users' => $premium_users, 'total_premium_users' => $premium_users,
]; ];
} }

View File

@@ -53,7 +53,7 @@ class LanguageController extends Controller
abort_if(is_demo(), 204, 'Done.'); abort_if(is_demo(), 204, 'Done.');
$language = Language::create([ $language = Language::create([
'name' => $request->input('name'), 'name' => $request->input('name'),
'locale' => $request->input('locale'), 'locale' => $request->input('locale'),
]); ]);

View File

@@ -84,11 +84,11 @@ class SettingController extends Controller
if (! app()->runningUnitTests()) { if (! app()->runningUnitTests()) {
setEnvironmentValue([ setEnvironmentValue([
'MAIL_DRIVER' => $request->driver, 'MAIL_DRIVER' => $request->driver,
'MAIL_HOST' => $request->host, 'MAIL_HOST' => $request->host,
'MAIL_PORT' => $request->port, 'MAIL_PORT' => $request->port,
'MAIL_USERNAME' => $request->username, 'MAIL_USERNAME' => $request->username,
'MAIL_PASSWORD' => $request->password, 'MAIL_PASSWORD' => $request->password,
'MAIL_ENCRYPTION' => $request->encryption, 'MAIL_ENCRYPTION' => $request->encryption,
]); ]);
@@ -127,20 +127,20 @@ class SettingController extends Controller
// Get options // Get options
collect([ collect([
[ [
'name' => 'stripe_currency', 'name' => 'stripe_currency',
'value' => $request->currency, 'value' => $request->currency,
], ],
[ [
'name' => 'payments_configured', 'name' => 'payments_configured',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'payments_active', 'name' => 'payments_active',
'value' => 1, 'value' => 1,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });
@@ -148,9 +148,9 @@ class SettingController extends Controller
if (! app()->runningUnitTests()) { if (! app()->runningUnitTests()) {
// Set stripe credentials to .env // Set stripe credentials to .env
setEnvironmentValue([ setEnvironmentValue([
'CASHIER_CURRENCY' => $request->currency, 'CASHIER_CURRENCY' => $request->currency,
'STRIPE_KEY' => $request->key, 'STRIPE_KEY' => $request->key,
'STRIPE_SECRET' => $request->secret, 'STRIPE_SECRET' => $request->secret,
'STRIPE_WEBHOOK_SECRET' => $request->webhookSecret, 'STRIPE_WEBHOOK_SECRET' => $request->webhookSecret,
]); ]);

View File

@@ -177,8 +177,8 @@ class UserController extends Controller
{ {
// Create user // Create user
$user = User::forceCreate([ $user = User::forceCreate([
'role' => $request->role, 'role' => $request->role,
'email' => $request->email, 'email' => $request->email,
'password' => bcrypt($request->password), 'password' => bcrypt($request->password),
]); ]);
@@ -187,8 +187,8 @@ class UserController extends Controller
$user $user
->settings() ->settings()
->create([ ->create([
'name' => $request->name, 'name' => $request->name,
'avatar' => store_avatar($request, 'avatar'), 'avatar' => store_avatar($request, 'avatar'),
'storage_capacity' => $request->storage_capacity, 'storage_capacity' => $request->storage_capacity,
]); ]);

View File

@@ -87,11 +87,11 @@ class AppFunctionsController extends Controller
return view('vuefilemanager.crawler.og-view') return view('vuefilemanager.crawler.og-view')
->with('settings', get_settings_in_json()) ->with('settings', get_settings_in_json())
->with('metadata', [ ->with('metadata', [
'url' => url('/share', ['token' => $shared->token]), 'url' => url('/share', ['token' => $shared->token]),
'is_protected' => $shared->is_protected, 'is_protected' => $shared->is_protected,
'user' => $shared->user->settings->name, 'user' => $shared->user->settings->name,
'name' => $item->name, 'name' => $item->name,
'size' => $shared->type === 'folder' 'size' => $shared->type === 'folder'
? $item->items ? $item->items
: $item->filesize, : $item->filesize,
'thumbnail' => $item->thumbnail ?? null, 'thumbnail' => $item->thumbnail ?? null,

View File

@@ -84,11 +84,11 @@ class SetupWizardController extends Controller
setEnvironmentValue([ setEnvironmentValue([
'DB_CONNECTION' => $request->connection, 'DB_CONNECTION' => $request->connection,
'DB_HOST' => $request->host, 'DB_HOST' => $request->host,
'DB_PORT' => $request->port, 'DB_PORT' => $request->port,
'DB_DATABASE' => $request->name, 'DB_DATABASE' => $request->name,
'DB_USERNAME' => $request->username, 'DB_USERNAME' => $request->username,
'DB_PASSWORD' => $request->password, 'DB_PASSWORD' => $request->password,
]); ]);
Artisan::call('config:cache'); Artisan::call('config:cache');
@@ -104,7 +104,7 @@ class SetupWizardController extends Controller
// Store setup wizard progress // Store setup wizard progress
Setting::forceCreate([ Setting::forceCreate([
'name' => 'setup_wizard_database', 'name' => 'setup_wizard_database',
'value' => 1, 'value' => 1,
]); ]);
@@ -134,20 +134,20 @@ class SetupWizardController extends Controller
// Set settings // Set settings
collect([ collect([
[ [
'name' => 'stripe_currency', 'name' => 'stripe_currency',
'value' => $request->currency, 'value' => $request->currency,
], ],
[ [
'name' => 'payments_configured', 'name' => 'payments_configured',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'payments_active', 'name' => 'payments_active',
'value' => 1, 'value' => 1,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });
@@ -155,9 +155,9 @@ class SetupWizardController extends Controller
if (! app()->runningUnitTests()) { if (! app()->runningUnitTests()) {
// Set stripe credentials to .env // Set stripe credentials to .env
setEnvironmentValue([ setEnvironmentValue([
'CASHIER_CURRENCY' => $request->currency, 'CASHIER_CURRENCY' => $request->currency,
'STRIPE_KEY' => $request->key, 'STRIPE_KEY' => $request->key,
'STRIPE_SECRET' => $request->secret, 'STRIPE_SECRET' => $request->secret,
'STRIPE_WEBHOOK_SECRET' => $request->webhookSecret, 'STRIPE_WEBHOOK_SECRET' => $request->webhookSecret,
]); ]);
@@ -179,40 +179,40 @@ class SetupWizardController extends Controller
// Get options // Get options
collect([ collect([
[ [
'name' => 'billing_phone_number', 'name' => 'billing_phone_number',
'value' => $request->billing_phone_number, 'value' => $request->billing_phone_number,
], ],
[ [
'name' => 'billing_postal_code', 'name' => 'billing_postal_code',
'value' => $request->billing_postal_code, 'value' => $request->billing_postal_code,
], ],
[ [
'name' => 'billing_vat_number', 'name' => 'billing_vat_number',
'value' => $request->billing_vat_number, 'value' => $request->billing_vat_number,
], ],
[ [
'name' => 'billing_address', 'name' => 'billing_address',
'value' => $request->billing_address, 'value' => $request->billing_address,
], ],
[ [
'name' => 'billing_country', 'name' => 'billing_country',
'value' => $request->billing_country, 'value' => $request->billing_country,
], ],
[ [
'name' => 'billing_state', 'name' => 'billing_state',
'value' => $request->billing_state, 'value' => $request->billing_state,
], ],
[ [
'name' => 'billing_city', 'name' => 'billing_city',
'value' => $request->billing_city, 'value' => $request->billing_city,
], ],
[ [
'name' => 'billing_name', 'name' => 'billing_name',
'value' => $request->billing_name, 'value' => $request->billing_name,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });
@@ -253,35 +253,35 @@ class SetupWizardController extends Controller
'FILESYSTEM_DRIVER' => 'local', 'FILESYSTEM_DRIVER' => 'local',
], ],
's3' => [ 's3' => [
'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null, 'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null,
'AWS_ACCESS_KEY_ID' => $request->storage['key'] ?? null, 'AWS_ACCESS_KEY_ID' => $request->storage['key'] ?? null,
'AWS_SECRET_ACCESS_KEY' => $request->storage['secret'] ?? null, 'AWS_SECRET_ACCESS_KEY' => $request->storage['secret'] ?? null,
'AWS_DEFAULT_REGION' => $request->storage['region'] ?? null, 'AWS_DEFAULT_REGION' => $request->storage['region'] ?? null,
'AWS_BUCKET' => $request->storage['bucket'] ?? null, 'AWS_BUCKET' => $request->storage['bucket'] ?? null,
], ],
'spaces' => [ 'spaces' => [
'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null, 'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null,
'DO_SPACES_KEY' => $request->storage['key'] ?? null, 'DO_SPACES_KEY' => $request->storage['key'] ?? null,
'DO_SPACES_SECRET' => $request->storage['secret'] ?? null, 'DO_SPACES_SECRET' => $request->storage['secret'] ?? null,
'DO_SPACES_ENDPOINT' => $request->storage['endpoint'] ?? null, 'DO_SPACES_ENDPOINT' => $request->storage['endpoint'] ?? null,
'DO_SPACES_REGION' => $request->storage['region'] ?? null, 'DO_SPACES_REGION' => $request->storage['region'] ?? null,
'DO_SPACES_BUCKET' => $request->storage['bucket'] ?? null, 'DO_SPACES_BUCKET' => $request->storage['bucket'] ?? null,
], ],
'wasabi' => [ 'wasabi' => [
'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null, 'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null,
'WASABI_KEY' => $request->storage['key'] ?? null, 'WASABI_KEY' => $request->storage['key'] ?? null,
'WASABI_SECRET' => $request->storage['secret'] ?? null, 'WASABI_SECRET' => $request->storage['secret'] ?? null,
'WASABI_ENDPOINT' => $request->storage['endpoint'] ?? null, 'WASABI_ENDPOINT' => $request->storage['endpoint'] ?? null,
'WASABI_REGION' => $request->storage['region'] ?? null, 'WASABI_REGION' => $request->storage['region'] ?? null,
'WASABI_BUCKET' => $request->storage['bucket'] ?? null, 'WASABI_BUCKET' => $request->storage['bucket'] ?? null,
], ],
'backblaze' => [ 'backblaze' => [
'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null, 'FILESYSTEM_DRIVER' => $request->storage['driver'] ?? null,
'BACKBLAZE_KEY' => $request->storage['key'] ?? null, 'BACKBLAZE_KEY' => $request->storage['key'] ?? null,
'BACKBLAZE_SECRET' => $request->storage['secret'] ?? null, 'BACKBLAZE_SECRET' => $request->storage['secret'] ?? null,
'BACKBLAZE_ENDPOINT' => $request->storage['endpoint'] ?? null, 'BACKBLAZE_ENDPOINT' => $request->storage['endpoint'] ?? null,
'BACKBLAZE_REGION' => $request->storage['region'] ?? null, 'BACKBLAZE_REGION' => $request->storage['region'] ?? null,
'BACKBLAZE_BUCKET' => $request->storage['bucket'] ?? null, 'BACKBLAZE_BUCKET' => $request->storage['bucket'] ?? null,
], ],
]; ];
@@ -293,11 +293,11 @@ class SetupWizardController extends Controller
// Store credentials for mail // Store credentials for mail
// TODO: add options for mailgun // TODO: add options for mailgun
setEnvironmentValue([ setEnvironmentValue([
'MAIL_DRIVER' => $request->mail['driver'], 'MAIL_DRIVER' => $request->mail['driver'],
'MAIL_HOST' => $request->mail['host'], 'MAIL_HOST' => $request->mail['host'],
'MAIL_PORT' => $request->mail['port'], 'MAIL_PORT' => $request->mail['port'],
'MAIL_USERNAME' => $request->mail['username'], 'MAIL_USERNAME' => $request->mail['username'],
'MAIL_PASSWORD' => $request->mail['password'], 'MAIL_PASSWORD' => $request->mail['password'],
'MAIL_ENCRYPTION' => $request->mail['encryption'], 'MAIL_ENCRYPTION' => $request->mail['encryption'],
]); ]);
@@ -317,56 +317,56 @@ class SetupWizardController extends Controller
// Get options // Get options
collect([ collect([
[ [
'name' => 'app_title', 'name' => 'app_title',
'value' => $request->title, 'value' => $request->title,
], ],
[ [
'name' => 'app_description', 'name' => 'app_description',
'value' => $request->description, 'value' => $request->description,
], ],
[ [
'name' => 'app_logo', 'name' => 'app_logo',
'value' => store_system_image($request, 'logo'), 'value' => store_system_image($request, 'logo'),
], ],
[ [
'name' => 'app_logo_horizontal', 'name' => 'app_logo_horizontal',
'value' => store_system_image($request, 'logo_horizontal'), 'value' => store_system_image($request, 'logo_horizontal'),
], ],
[ [
'name' => 'app_favicon', 'name' => 'app_favicon',
'value' => store_system_image($request, 'favicon'), 'value' => store_system_image($request, 'favicon'),
], ],
[ [
'name' => 'app_og_image', 'name' => 'app_og_image',
'value' => store_system_image($request, 'og_image'), 'value' => store_system_image($request, 'og_image'),
], ],
[ [
'name' => 'app_touch_icon', 'name' => 'app_touch_icon',
'value' => store_system_image($request, 'touch_icon'), 'value' => store_system_image($request, 'touch_icon'),
], ],
[ [
'name' => 'google_analytics', 'name' => 'google_analytics',
'value' => $request->googleAnalytics, 'value' => $request->googleAnalytics,
], ],
[ [
'name' => 'contact_email', 'name' => 'contact_email',
'value' => $request->contactMail, 'value' => $request->contactMail,
], ],
[ [
'name' => 'registration', 'name' => 'registration',
'value' => $request->userRegistration, 'value' => $request->userRegistration,
], ],
[ [
'name' => 'storage_limitation', 'name' => 'storage_limitation',
'value' => $request->storageLimitation, 'value' => $request->storageLimitation,
], ],
[ [
'name' => 'storage_default', 'name' => 'storage_default',
'value' => $request->defaultStorage ?? 5, 'value' => $request->defaultStorage ?? 5,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });
@@ -391,18 +391,18 @@ class SetupWizardController extends Controller
// Validate request // Validate request
// TODO: validator do requestu // TODO: validator do requestu
$request->validate([ $request->validate([
'email' => 'required|string|email|unique:users', 'email' => 'required|string|email|unique:users',
'password' => 'required|string|min:6|confirmed', 'password' => 'required|string|min:6|confirmed',
'name' => 'required|string', 'name' => 'required|string',
'purchase_code' => 'required|string', 'purchase_code' => 'required|string',
'license' => 'required|string', 'license' => 'required|string',
'avatar' => 'sometimes|file', 'avatar' => 'sometimes|file',
]); ]);
// Create user // Create user
$user = User::forceCreate([ $user = User::forceCreate([
'role' => 'admin', 'role' => 'admin',
'email' => $request->email, 'email' => $request->email,
'password' => bcrypt($request->password), 'password' => bcrypt($request->password),
]); ]);
@@ -410,26 +410,26 @@ class SetupWizardController extends Controller
->settings() ->settings()
->create([ ->create([
'storage_capacity' => get_setting('storage_default') ?? 5, 'storage_capacity' => get_setting('storage_default') ?? 5,
'avatar' => store_avatar($request, 'avatar'), 'avatar' => store_avatar($request, 'avatar'),
'name' => $request->name, 'name' => $request->name,
]); ]);
collect([ collect([
[ [
'name' => 'setup_wizard_success', 'name' => 'setup_wizard_success',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'license', 'name' => 'license',
'value' => $request->license, 'value' => $request->license,
], ],
[ [
'name' => 'purchase_code', 'name' => 'purchase_code',
'value' => $request->purchase_code, 'value' => $request->purchase_code,
], ],
])->each(function ($col) { ])->each(function ($col) {
Setting::forceCreate([ Setting::forceCreate([
'name' => $col['name'], 'name' => $col['name'],
'value' => $col['value'], 'value' => $col['value'],
]); ]);
}); });

View File

@@ -24,7 +24,7 @@ class AuthController extends Controller
} }
return [ return [
'name' => $user->settings->name, 'name' => $user->settings->name,
'avatar' => $user->settings->avatar, 'avatar' => $user->settings->avatar,
]; ];
} }

View File

@@ -180,9 +180,9 @@ class BrowseController extends Controller
return [ return [
[ [
'name' => __t('home'), 'name' => __t('home'),
'location' => 'base', 'location' => 'base',
'folders' => $folders, 'folders' => $folders,
], ],
]; ];
} }

View File

@@ -139,7 +139,7 @@ class EditItemsController extends Controller
$zip = $this->filemanager->zip_folder($id); $zip = $this->filemanager->zip_folder($id);
return response([ return response([
'url' => route('zip', $zip->id), 'url' => route('zip', $zip->id),
'name' => $zip->basename, 'name' => $zip->basename,
], 201); ], 201);
} }
@@ -160,7 +160,7 @@ class EditItemsController extends Controller
$zip = $this->filemanager->zip_files($files); $zip = $this->filemanager->zip_files($files);
return response([ return response([
'url' => route('zip', $zip->id), 'url' => route('zip', $zip->id),
'name' => $zip->basename, 'name' => $zip->basename,
], 201); ], 201);
} }

View File

@@ -109,10 +109,10 @@ class FileAccessController extends Controller
); );
return $disk->download("zip/$zip->basename", $zip->basename, [ return $disk->download("zip/$zip->basename", $zip->basename, [
'Content-Type' => 'application/zip', 'Content-Type' => 'application/zip',
'Content-Length' => $disk->size("zip/$zip->basename"), 'Content-Length' => $disk->size("zip/$zip->basename"),
'Accept-Ranges' => 'bytes', 'Accept-Ranges' => 'bytes',
'Content-Range' => 'bytes 0-600/' . $disk->size("zip/$zip->basename"), 'Content-Range' => 'bytes 0-600/' . $disk->size("zip/$zip->basename"),
'Content-Disposition' => "attachment; filename=$zip->basename", 'Content-Disposition' => "attachment; filename=$zip->basename",
]); ]);
} }

View File

@@ -40,13 +40,13 @@ class ShareController extends Controller
{ {
// Create shared options // Create shared options
$shared = Share::create([ $shared = Share::create([
'password' => $request->has('password') ? bcrypt($request->password) : null, 'password' => $request->has('password') ? bcrypt($request->password) : null,
'type' => $request->type === 'folder' ? 'folder' : 'file', 'type' => $request->type === 'folder' ? 'folder' : 'file',
'is_protected' => $request->isPassword, 'is_protected' => $request->isPassword,
'permission' => $request->permission ?? null, 'permission' => $request->permission ?? null,
'item_id' => $id, 'item_id' => $id,
'expire_in' => $request->expiration ?? null, 'expire_in' => $request->expiration ?? null,
'user_id' => Auth::id(), 'user_id' => Auth::id(),
]); ]);
// Send shared link via email // Send shared link via email
@@ -78,10 +78,10 @@ class ShareController extends Controller
// Update sharing record // Update sharing record
$shared->update([ $shared->update([
'permission' => $request->permission, 'permission' => $request->permission,
'is_protected' => $request->protected, 'is_protected' => $request->protected,
'expire_in' => $request->expiration, 'expire_in' => $request->expiration,
'password' => $request->password ? bcrypt($request->password) : $shared->password, 'password' => $request->password ? bcrypt($request->password) : $shared->password,
]); ]);
// Return shared record // Return shared record

View File

@@ -33,7 +33,7 @@ class TrashController extends Controller
// TODO: zrefaktorovat validator do requestu // TODO: zrefaktorovat validator do requestu
$validator = Validator::make($request->input('items'), [ $validator = Validator::make($request->input('items'), [
'*.type' => 'required|string', '*.type' => 'required|string',
'*.id' => 'string', '*.id' => 'string',
]); ]);
// Return error // Return error

View File

@@ -50,7 +50,7 @@ class AdminController extends Controller
{ {
// Create user // Create user
$newbie = User::create([ $newbie = User::create([
'email' => $request->email, 'email' => $request->email,
'password' => Hash::make(Str::random()), 'password' => Hash::make(Str::random()),
]); ]);
@@ -61,15 +61,15 @@ class AdminController extends Controller
->settings() ->settings()
->create([ ->create([
'storage_capacity' => 0, 'storage_capacity' => 0,
'ico' => $request->ico ?? null, 'ico' => $request->ico ?? null,
'name' => $request->name, 'name' => $request->name,
'address' => $request->address, 'address' => $request->address,
'state' => $request->state, 'state' => $request->state,
'city' => $request->city, 'city' => $request->city,
'postal_code' => $request->postal_code, 'postal_code' => $request->postal_code,
'country' => $request->country, 'country' => $request->country,
'phone_number' => $request->phone_number ?? null, 'phone_number' => $request->phone_number ?? null,
'timezone' => '1.0', 'timezone' => '1.0',
]); ]);
// Store subscription request // Store subscription request
@@ -104,8 +104,8 @@ class AdminController extends Controller
{ {
// Create user // Create user
$user = User::forceCreate([ $user = User::forceCreate([
'role' => $request->role, 'role' => $request->role,
'email' => $request->email, 'email' => $request->email,
'password' => \Illuminate\Support\Facades\Hash::make($request->password), 'password' => \Illuminate\Support\Facades\Hash::make($request->password),
]); ]);
@@ -114,9 +114,9 @@ class AdminController extends Controller
$user $user
->settings() ->settings()
->create([ ->create([
'name' => $request->name, 'name' => $request->name,
'avatar' => store_avatar($request, 'avatar'), 'avatar' => store_avatar($request, 'avatar'),
'storage_capacity' => $request->storage_capacity, 'storage_capacity' => $request->storage_capacity,
'payment_activation' => 1, 'payment_activation' => 1,
]); ]);

View File

@@ -96,7 +96,7 @@ class SubscriptionController extends Controller
$user $user
->settings() ->settings()
->update([ ->update([
'storage_capacity' => $plan['product']['metadata']['capacity'], 'storage_capacity' => $plan['product']['metadata']['capacity'],
'payment_activation' => 1, 'payment_activation' => 1,
]); ]);

View File

@@ -72,7 +72,7 @@ class BrowseShareController extends Controller
// Check password // Check password
if (Hash::check($request->password, $shared->password)) { if (Hash::check($request->password, $shared->password)) {
$cookie = json_encode([ $cookie = json_encode([
'token' => $shared->token, 'token' => $shared->token,
'authenticated' => true, 'authenticated' => true,
]); ]);
@@ -188,10 +188,10 @@ class BrowseShareController extends Controller
return [ return [
[ [
'id' => $shared->item_id, 'id' => $shared->item_id,
'name' => __t('home'), 'name' => __t('home'),
'location' => 'public', 'location' => 'public',
'folders' => $folders, 'folders' => $folders,
], ],
]; ];
} }
@@ -239,10 +239,10 @@ class BrowseShareController extends Controller
} }
return Storage::response($path, $file_pretty_name, [ return Storage::response($path, $file_pretty_name, [
'Content-Type' => Storage::mimeType($path), 'Content-Type' => Storage::mimeType($path),
'Content-Length' => Storage::size($path), 'Content-Length' => Storage::size($path),
'Accept-Ranges' => 'bytes', 'Accept-Ranges' => 'bytes',
'Content-Range' => 'bytes 0-600/' . Storage::size($path), 'Content-Range' => 'bytes 0-600/' . Storage::size($path),
]); ]);
} }
} }

View File

@@ -40,10 +40,10 @@ class FileSharedAccessController extends Controller
return $disk return $disk
->download("zip/$zip->basename", $zip->basename, [ ->download("zip/$zip->basename", $zip->basename, [
'Content-Type' => 'application/zip', 'Content-Type' => 'application/zip',
'Content-Length' => $disk->size("zip/$zip->basename"), 'Content-Length' => $disk->size("zip/$zip->basename"),
'Accept-Ranges' => 'bytes', 'Accept-Ranges' => 'bytes',
'Content-Range' => 'bytes 0-600/' . $disk->size("zip/$zip->basename"), 'Content-Range' => 'bytes 0-600/' . $disk->size("zip/$zip->basename"),
'Content-Disposition' => 'attachment; filename=' . $zip->basename, 'Content-Disposition' => 'attachment; filename=' . $zip->basename,
]); ]);
} }

View File

@@ -252,7 +252,7 @@ class ManipulateShareItemsController extends Controller
// Get file // Get file
return response([ return response([
'url' => route('zip_public', [ 'url' => route('zip_public', [
'id' => $zip->id, 'id' => $zip->id,
'token' => $shared->token, 'token' => $shared->token,
]), ]),
'name' => $zip->basename, 'name' => $zip->basename,
@@ -291,7 +291,7 @@ class ManipulateShareItemsController extends Controller
// Get file // Get file
return response([ return response([
'url' => route('zip_public', [ 'url' => route('zip_public', [
'id' => $zip->id, 'id' => $zip->id,
'token' => $shared->token, 'token' => $shared->token,
]), ]),
'name' => $zip->basename, 'name' => $zip->basename,

View File

@@ -70,8 +70,8 @@ class AccountController extends Controller
// TODO: pridat validator do requestu // TODO: pridat validator do requestu
$validator = Validator::make($request->all(), [ $validator = Validator::make($request->all(), [
'avatar' => 'sometimes|file', 'avatar' => 'sometimes|file',
'name' => 'string', 'name' => 'string',
'value' => 'string', 'value' => 'string',
]); ]);
// Return error // Return error

View File

@@ -70,7 +70,7 @@ class PaymentMethodsController extends Controller
if (! $user->card_brand || ! $user->stripe_id || is_null($paymentMethodsMapped) && is_null($paymentMethodsMapped)) { if (! $user->card_brand || ! $user->stripe_id || is_null($paymentMethodsMapped) && is_null($paymentMethodsMapped)) {
return [ return [
'default' => null, 'default' => null,
'others' => [], 'others' => [],
]; ];
} }

View File

@@ -55,14 +55,14 @@ class Kernel extends HttpKernel
* @var array * @var array
*/ */
protected $routeMiddleware = [ protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class, 'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
]; ];
} }

View File

@@ -23,7 +23,7 @@ class ChangeRoleRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'attributes' => 'required|array', 'attributes' => 'required|array',
'attributes.role' => 'required|string', 'attributes.role' => 'required|string',
]; ];
} }

View File

@@ -23,7 +23,7 @@ class ChangeStorageCapacityRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'attributes' => 'required|array', 'attributes' => 'required|array',
'attributes.storage_capacity' => 'required|digits_between:1,9', 'attributes.storage_capacity' => 'required|digits_between:1,9',
]; ];
} }

View File

@@ -23,12 +23,12 @@ class CreateUserByAdmin extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'email' => 'required|string|email|max:255|unique:users', 'email' => 'required|string|email|max:255|unique:users',
'password' => 'required|string|min:6|confirmed', 'password' => 'required|string|min:6|confirmed',
'name' => 'required|string|max:255', 'name' => 'required|string|max:255',
'storage_capacity' => 'required|digits_between:1,9', 'storage_capacity' => 'required|digits_between:1,9',
'role' => 'required|string', 'role' => 'required|string',
'avatar' => 'sometimes|file', 'avatar' => 'sometimes|file',
]; ];
} }
} }

View File

@@ -24,7 +24,7 @@ class CreateFolderRequest extends FormRequest
{ {
return [ return [
'parent_id' => 'nullable|uuid', 'parent_id' => 'nullable|uuid',
'name' => 'required|string', 'name' => 'required|string',
]; ];
} }
} }

View File

@@ -24,8 +24,8 @@ class DeleteItemRequest extends FormRequest
{ {
return [ return [
'data[*].force_delete' => 'required|boolean', 'data[*].force_delete' => 'required|boolean',
'data[*].type' => 'required|string', 'data[*].type' => 'required|string',
'data[*].id' => 'required|integer', 'data[*].id' => 'required|integer',
]; ];
} }
} }

View File

@@ -23,9 +23,9 @@ class MoveItemRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'to_id' => 'nullable|uuid', 'to_id' => 'nullable|uuid',
'items[*].type' => 'required|string', 'items[*].type' => 'required|string',
'items[*].id' => 'required|uuid', 'items[*].id' => 'required|uuid',
]; ];
} }
} }

View File

@@ -25,7 +25,7 @@ class UploadRequest extends FormRequest
{ {
return [ return [
'folder_id' => 'nullable|uuid', 'folder_id' => 'nullable|uuid',
'file' => ['required', 'file', new DisabledMimetypes], 'file' => ['required', 'file', new DisabledMimetypes],
]; ];
} }
} }

View File

@@ -23,7 +23,7 @@ class CreateLanguageRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|string', 'name' => 'required|string',
'locale' => 'required|string', 'locale' => 'required|string',
]; ];
} }

View File

@@ -23,7 +23,7 @@ class UpdateLanguageRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|string', 'name' => 'required|string',
'value' => 'required|string', 'value' => 'required|string',
]; ];
} }

View File

@@ -23,7 +23,7 @@ class UpdateStringRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'name' => 'required|string', 'name' => 'required|string',
'value' => 'required|string', 'value' => 'required|string',
]; ];
} }

View File

@@ -23,16 +23,16 @@ class CreateOrderRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'ico' => 'sometimes|nullable', 'ico' => 'sometimes|nullable',
'name' => 'required|string', 'name' => 'required|string',
'email' => 'required|email|unique:users', 'email' => 'required|email|unique:users',
'phone_number' => 'string|nullable', 'phone_number' => 'string|nullable',
'address' => 'required|string', 'address' => 'required|string',
'state' => 'required|string', 'state' => 'required|string',
'city' => 'required|string', 'city' => 'required|string',
'postal_code' => 'required|string', 'postal_code' => 'required|string',
'country' => 'required|string', 'country' => 'required|string',
'plan' => 'required|string', 'plan' => 'required|string',
]; ];
} }
} }

View File

@@ -23,7 +23,7 @@ class RegisterNewPaymentMethodRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'token' => 'required|string', 'token' => 'required|string',
'default' => 'required|boolean', 'default' => 'required|boolean',
]; ];
} }

View File

@@ -23,7 +23,7 @@ class SendContactMessageRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'email' => 'required|email', 'email' => 'required|email',
'message' => 'required|string', 'message' => 'required|string',
]; ];
} }

View File

@@ -23,15 +23,15 @@ class StoreAppSetupRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'title' => 'required|string', 'title' => 'required|string',
'description' => 'required|string', 'description' => 'required|string',
'logo' => 'sometimes|file', 'logo' => 'sometimes|file',
'logo_horizontal' => 'sometimes|file', 'logo_horizontal' => 'sometimes|file',
'favicon' => 'sometimes|file', 'favicon' => 'sometimes|file',
'contactMail' => 'required|email', 'contactMail' => 'required|email',
'googleAnalytics' => 'sometimes|string', 'googleAnalytics' => 'sometimes|string',
'defaultStorage' => 'sometimes|digits_between:1,9', 'defaultStorage' => 'sometimes|digits_between:1,9',
'userRegistration' => 'required|boolean', 'userRegistration' => 'required|boolean',
'storageLimitation' => 'required|boolean', 'storageLimitation' => 'required|boolean',
]; ];
} }

View File

@@ -24,11 +24,11 @@ class StoreDatabaseCredentialsRequest extends FormRequest
{ {
return [ return [
'connection' => 'required|string', 'connection' => 'required|string',
'host' => 'required|string', 'host' => 'required|string',
'port' => 'required|string', 'port' => 'required|string',
'name' => 'required|string', 'name' => 'required|string',
'username' => 'required|string', 'username' => 'required|string',
'password' => 'required|string', 'password' => 'required|string',
]; ];
} }
} }

View File

@@ -23,20 +23,20 @@ class StoreEnvironmentSetupRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'storage' => 'required|array', 'storage' => 'required|array',
'storage.driver' => 'required|string', 'storage.driver' => 'required|string',
'storage.key' => 'sometimes|nullable|string', 'storage.key' => 'sometimes|nullable|string',
'storage.secret' => 'sometimes|nullable|string', 'storage.secret' => 'sometimes|nullable|string',
'storage.endpoint' => 'sometimes|nullable|string', 'storage.endpoint' => 'sometimes|nullable|string',
'storage.region' => 'sometimes|nullable|string', 'storage.region' => 'sometimes|nullable|string',
'storage.bucket' => 'sometimes|nullable|string', 'storage.bucket' => 'sometimes|nullable|string',
'mail' => 'required|array', 'mail' => 'required|array',
'mail.driver' => 'required|string', 'mail.driver' => 'required|string',
'mail.host' => 'required|string', 'mail.host' => 'required|string',
'mail.port' => 'required|string', 'mail.port' => 'required|string',
'mail.username' => 'required|string', 'mail.username' => 'required|string',
'mail.password' => 'required|string', 'mail.password' => 'required|string',
'mail.encryption' => 'required|string', 'mail.encryption' => 'required|string',
]; ];
} }
} }

View File

@@ -24,13 +24,13 @@ class StoreStripeBillingRequest extends FormRequest
{ {
return [ return [
'billing_phone_number' => 'sometimes|nullable|string', 'billing_phone_number' => 'sometimes|nullable|string',
'billing_postal_code' => 'required|string', 'billing_postal_code' => 'required|string',
'billing_vat_number' => 'required|string', 'billing_vat_number' => 'required|string',
'billing_address' => 'required|string', 'billing_address' => 'required|string',
'billing_country' => 'required|string', 'billing_country' => 'required|string',
'billing_state' => 'required|string', 'billing_state' => 'required|string',
'billing_city' => 'required|string', 'billing_city' => 'required|string',
'billing_name' => 'required|string', 'billing_name' => 'required|string',
]; ];
} }
} }

View File

@@ -23,10 +23,10 @@ class StoreStripeCredentialsRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'currency' => 'required|string', 'currency' => 'required|string',
'webhookSecret' => 'required|string', 'webhookSecret' => 'required|string',
'secret' => 'required|string', 'secret' => 'required|string',
'key' => 'required|string', 'key' => 'required|string',
]; ];
} }
} }

View File

@@ -23,12 +23,12 @@ class StoreStripePlansRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'plans' => 'required|array', 'plans' => 'required|array',
'plans.*.type' => 'required|string', 'plans.*.type' => 'required|string',
'plans.*.attributes.name' => 'required|string', 'plans.*.attributes.name' => 'required|string',
'plans.*.attributes.price' => 'required|string', 'plans.*.attributes.price' => 'required|string',
'plans.*.attributes.description' => 'sometimes|nullable|string', 'plans.*.attributes.description' => 'sometimes|nullable|string',
'plans.*.attributes.capacity' => 'required|digits_between:1,9', 'plans.*.attributes.capacity' => 'required|digits_between:1,9',
]; ];
} }
} }

View File

@@ -25,11 +25,11 @@ class CreateShareRequest extends FormRequest
{ {
return [ return [
'isPassword' => 'required|boolean', 'isPassword' => 'required|boolean',
'type' => 'required|string', 'type' => 'required|string',
'expiration' => 'integer|nullable', 'expiration' => 'integer|nullable',
'permission' => 'string', 'permission' => 'string',
'password' => 'string', 'password' => 'string',
'emails.*' => 'email', 'emails.*' => 'email',
]; ];
} }
} }

View File

@@ -24,10 +24,10 @@ class UpdateShareRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'protected' => 'required|boolean', 'protected' => 'required|boolean',
'permission' => 'nullable|string', 'permission' => 'nullable|string',
'expiration' => 'integer|nullable', 'expiration' => 'integer|nullable',
'password' => 'string', 'password' => 'string',
]; ];
} }
} }

View File

@@ -24,32 +24,32 @@ class StoreUpgradeAccountRequest extends FormRequest
{ {
return [ return [
// Billings // Billings
'billing' => 'required|array', 'billing' => 'required|array',
'billing.billing_address' => 'required|string', 'billing.billing_address' => 'required|string',
'billing.billing_city' => 'required|string', 'billing.billing_city' => 'required|string',
'billing.billing_country' => 'required|string', 'billing.billing_country' => 'required|string',
'billing.billing_name' => 'required|string', 'billing.billing_name' => 'required|string',
'billing.billing_phone_number' => 'required|string', 'billing.billing_phone_number' => 'required|string',
'billing.billing_postal_code' => 'required|string', 'billing.billing_postal_code' => 'required|string',
'billing.billing_state' => 'required|string', 'billing.billing_state' => 'required|string',
// Payment // Payment
'payment' => 'required|array', 'payment' => 'required|array',
'payment.type' => 'required|string', 'payment.type' => 'required|string',
'payment.meta' => 'required|sometimes|array', 'payment.meta' => 'required|sometimes|array',
'payment.meta.pm' => 'required|sometimes|string', 'payment.meta.pm' => 'required|sometimes|string',
// Plan // Plan
'plan.data' => 'required|array', 'plan.data' => 'required|array',
'plan.data.attributes' => 'required|array', 'plan.data.attributes' => 'required|array',
'plan.data.attributes.capacity' => 'required|digits_between:1,9', 'plan.data.attributes.capacity' => 'required|digits_between:1,9',
'plan.data.attributes.capacity_formatted' => 'required|string', 'plan.data.attributes.capacity_formatted' => 'required|string',
'plan.data.attributes.currency' => 'required|string', 'plan.data.attributes.currency' => 'required|string',
'plan.data.attributes.description' => 'sometimes|string|nullable', 'plan.data.attributes.description' => 'sometimes|string|nullable',
'plan.data.attributes.name' => 'required|string', 'plan.data.attributes.name' => 'required|string',
'plan.data.attributes.price' => 'required|string', 'plan.data.attributes.price' => 'required|string',
'plan.data.id' => 'required|string', 'plan.data.id' => 'required|string',
'plan.data.type' => 'required|string', 'plan.data.type' => 'required|string',
]; ];
} }
} }

View File

@@ -15,16 +15,16 @@ class FileResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'file', 'type' => 'file',
'attributes' => [ 'attributes' => [
'name' => $this->name, 'name' => $this->name,
'basename' => $this->basename, 'basename' => $this->basename,
'mimetype' => $this->mimetype, 'mimetype' => $this->mimetype,
'filesize' => $this->filesize, 'filesize' => $this->filesize,
'type' => $this->type, 'type' => $this->type,
'file_url' => $this->file_url, 'file_url' => $this->file_url,
'thumbnail' => $this->thumbnail, 'thumbnail' => $this->thumbnail,
'created_at' => $this->created_at, 'created_at' => $this->created_at,
'updated_at' => $this->created_at, 'updated_at' => $this->created_at,
], ],

View File

@@ -20,25 +20,25 @@ class InvoiceAdminResource extends JsonResource
return [ return [
'data' => [ 'data' => [
'id' => $this['id'], 'id' => $this['id'],
'type' => 'invoices', 'type' => 'invoices',
'attributes' => [ 'attributes' => [
'customer' => $this['customer'], 'customer' => $this['customer'],
'total' => Cashier::formatAmount($this['total']), 'total' => Cashier::formatAmount($this['total']),
'currency' => $this['currency'], 'currency' => $this['currency'],
'created_at_formatted' => format_date($this['created']), 'created_at_formatted' => format_date($this['created']),
'created_at' => $this['created'], 'created_at' => $this['created'],
'order' => $this['number'], 'order' => $this['number'],
'user_id' => $user->id ?? null, 'user_id' => $user->id ?? null,
'client' => [ 'client' => [
'billing_address' => $this['customer_address'], 'billing_address' => $this['customer_address'],
'billing_name' => $this['customer_name'], 'billing_name' => $this['customer_name'],
'billing_phone_number' => $this['customer_phone'], 'billing_phone_number' => $this['customer_phone'],
], ],
'bag' => [ 'bag' => [
'amount' => $this['lines']['data'][0]['amount'], 'amount' => $this['lines']['data'][0]['amount'],
'currency' => $this['lines']['data'][0]['currency'], 'currency' => $this['lines']['data'][0]['currency'],
'type' => $this['lines']['data'][0]['type'], 'type' => $this['lines']['data'][0]['type'],
'description' => $this['lines']['data'][0]['description'], 'description' => $this['lines']['data'][0]['description'],
], ],
'seller' => null, 'seller' => null,
@@ -48,10 +48,10 @@ class InvoiceAdminResource extends JsonResource
'relationships' => [ 'relationships' => [
'user' => [ 'user' => [
'data' => [ 'data' => [
'id' => $user->id, 'id' => $user->id,
'type' => 'user', 'type' => 'user',
'attributes' => [ 'attributes' => [
'name' => $user->settings->name, 'name' => $user->settings->name,
'avatar' => $user->settings->avatar, 'avatar' => $user->settings->avatar,
], ],
], ],

View File

@@ -19,33 +19,33 @@ class InvoiceResource extends JsonResource
return [ return [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'invoices', 'type' => 'invoices',
'attributes' => [ 'attributes' => [
'customer' => $this->customer, 'customer' => $this->customer,
'total' => $this->total(), 'total' => $this->total(),
'currency' => $this->currency, 'currency' => $this->currency,
'created_at_formatted' => format_date($this->date(), '%d. %B. %Y'), 'created_at_formatted' => format_date($this->date(), '%d. %B. %Y'),
'created_at' => $this->created, 'created_at' => $this->created,
'order' => $this->number, 'order' => $this->number,
'user_id' => $user->id ?? null, 'user_id' => $user->id ?? null,
'client' => [ 'client' => [
'billing_address' => $this->customer_address, 'billing_address' => $this->customer_address,
'billing_name' => $this->customer_name, 'billing_name' => $this->customer_name,
'billing_phone_number' => $this->customer_phone, 'billing_phone_number' => $this->customer_phone,
], ],
'seller' => null, 'seller' => null,
'invoice_items' => $this->get_invoice_items(), 'invoice_items' => $this->get_invoice_items(),
'invoice_subscriptions' => $this->get_invoice_subscriptions(), 'invoice_subscriptions' => $this->get_invoice_subscriptions(),
], ],
$this->mergeWhen($user, [ $this->mergeWhen($user, [
'relationships' => [ 'relationships' => [
'user' => [ 'user' => [
'data' => [ 'data' => [
'id' => $user->id, 'id' => $user->id,
'type' => 'user', 'type' => 'user',
'attributes' => [ 'attributes' => [
'name' => $user->settings->name, 'name' => $user->settings->name,
'avatar' => $user->settings->avatar, 'avatar' => $user->settings->avatar,
], ],
], ],
@@ -65,10 +65,10 @@ class InvoiceResource extends JsonResource
foreach ($this->subscriptions() as $item) { foreach ($this->subscriptions() as $item) {
array_push($array, [ array_push($array, [
'amount' => $item->total(), 'amount' => $item->total(),
'description' => $item->description, 'description' => $item->description,
'currency' => $item->currency, 'currency' => $item->currency,
'type' => $item->type, 'type' => $item->type,
]); ]);
} }
@@ -84,10 +84,10 @@ class InvoiceResource extends JsonResource
foreach ($this->invoiceItems() as $item) { foreach ($this->invoiceItems() as $item) {
array_push($array, [ array_push($array, [
'amount' => $item->total(), 'amount' => $item->total(),
'description' => $item->description, 'description' => $item->description,
'currency' => $item->currency, 'currency' => $item->currency,
'type' => $item->type, 'type' => $item->type,
]); ]);
} }

View File

@@ -23,7 +23,7 @@ class LanguageCollection extends ResourceCollection
return [ return [
'data' => $this->collection, 'data' => $this->collection,
'meta' => [ 'meta' => [
'current_language' => new LanguageResource($current_language), 'current_language' => new LanguageResource($current_language),
'reference_translations' => get_default_language_translations(), 'reference_translations' => get_default_language_translations(),
], ],
]; ];

View File

@@ -15,14 +15,14 @@ class LanguageResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'languages', 'type' => 'languages',
'attributes' => [ 'attributes' => [
'name' => $this->name, 'name' => $this->name,
'locale' => $this->locale, 'locale' => $this->locale,
'translations' => map_language_translations($this->languageTranslations), 'translations' => map_language_translations($this->languageTranslations),
'updated_at' => $this->updated_at, 'updated_at' => $this->updated_at,
'created_at' => $this->created_at, 'created_at' => $this->created_at,
], ],
], ],
]; ];

View File

@@ -17,27 +17,27 @@ class SubscriptionRequestResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'subscription-requests', 'type' => 'subscription-requests',
'attributes' => [ 'attributes' => [
'requested_plan' => $this->requested_plan, 'requested_plan' => $this->requested_plan,
'status' => $this->status, 'status' => $this->status,
'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'), 'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'),
], ],
'relationships' => [ 'relationships' => [
'user' => [ 'user' => [
'data' => [ 'data' => [
'id' => $this->user->id, 'id' => $this->user->id,
'type' => 'users', 'type' => 'users',
'attributes' => [ 'attributes' => [
'name' => $this->user->settings->name, 'name' => $this->user->settings->name,
'address' => $this->user->settings->address, 'address' => $this->user->settings->address,
'state' => $this->user->settings->state, 'state' => $this->user->settings->state,
'city' => $this->user->settings->city, 'city' => $this->user->settings->city,
'postal_code' => $this->user->settings->postal_code, 'postal_code' => $this->user->settings->postal_code,
'country' => $this->user->settings->country, 'country' => $this->user->settings->country,
'phone_number' => $this->user->settings->phone_number, 'phone_number' => $this->user->settings->phone_number,
'ico' => $this->user->settings->ico, 'ico' => $this->user->settings->ico,
], ],
], ],
], ],

View File

@@ -15,13 +15,13 @@ class PageResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => $this->slug, 'id' => $this->slug,
'type' => 'pages', 'type' => 'pages',
'attributes' => [ 'attributes' => [
'visibility' => $this->visibility, 'visibility' => $this->visibility,
'title' => $this->title, 'title' => $this->title,
'slug' => $this->slug, 'slug' => $this->slug,
'content' => $this->content, 'content' => $this->content,
'content_formatted' => add_paragraphs($this->content), 'content_formatted' => add_paragraphs($this->content),
], ],
], ],

View File

@@ -15,18 +15,18 @@ class PaymentCardResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => (string) $this['id'], 'id' => (string) $this['id'],
'type' => 'payment_method', 'type' => 'payment_method',
'attributes' => [ 'attributes' => [
'provider' => 'stripe', 'provider' => 'stripe',
'card_id' => $this['id'], 'card_id' => $this['id'],
'brand' => strtolower($this['card']['brand']), 'brand' => strtolower($this['card']['brand']),
'last4' => $this['card']['last4'], 'last4' => $this['card']['last4'],
'exp_month' => $this['card']['exp_month'], 'exp_month' => $this['card']['exp_month'],
'exp_year' => $this['card']['exp_year'], 'exp_year' => $this['card']['exp_year'],
'created_at' => format_date($this['created_at'], '%d. %B. %Y'), 'created_at' => format_date($this['created_at'], '%d. %B. %Y'),
'status' => 'active', 'status' => 'active',
'default' => 0, 'default' => 0,
], ],
], ],
]; ];

View File

@@ -15,18 +15,18 @@ class PaymentDefaultCardResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => (string) $this['id'], 'id' => (string) $this['id'],
'type' => 'payment_method', 'type' => 'payment_method',
'attributes' => [ 'attributes' => [
'provider' => 'stripe', 'provider' => 'stripe',
'card_id' => $this['id'], 'card_id' => $this['id'],
'brand' => isset($this['brand']) ? strtolower($this['brand']) : strtolower($this['card']['brand']), 'brand' => isset($this['brand']) ? strtolower($this['brand']) : strtolower($this['card']['brand']),
'last4' => isset($this['last4']) ? $this['last4'] : $this['card']['last4'], 'last4' => isset($this['last4']) ? $this['last4'] : $this['card']['last4'],
'exp_month' => isset($this['exp_month']) ? $this['exp_month'] : $this['card']['exp_month'], 'exp_month' => isset($this['exp_month']) ? $this['exp_month'] : $this['card']['exp_month'],
'exp_year' => isset($this['exp_year']) ? $this['exp_year'] : $this['card']['exp_year'], 'exp_year' => isset($this['exp_year']) ? $this['exp_year'] : $this['card']['exp_year'],
'created_at' => format_date($this['created_at'], '%d. %B. %Y'), 'created_at' => format_date($this['created_at'], '%d. %B. %Y'),
'status' => 'active', 'status' => 'active',
'default' => 0, 'default' => 0,
], ],
], ],
]; ];

View File

@@ -22,19 +22,19 @@ class PlanResource extends JsonResource
return [ return [
'data' => [ 'data' => [
'id' => $this['plan']['id'], 'id' => $this['plan']['id'],
'type' => 'plans', 'type' => 'plans',
'attributes' => [ 'attributes' => [
'subscribers' => $subscriber_count->count(), 'subscribers' => $subscriber_count->count(),
'status' => $this['plan']['active'] ? 1 : 0, 'status' => $this['plan']['active'] ? 1 : 0,
'name' => $this['product']['name'], 'name' => $this['product']['name'],
'description' => $this['product']['description'], 'description' => $this['product']['description'],
'price' => $this['plan']['amount'], 'price' => $this['plan']['amount'],
'price_formatted' => Cashier::formatAmount($this['plan']['amount']), 'price_formatted' => Cashier::formatAmount($this['plan']['amount']),
'capacity_formatted' => format_gigabytes($this['product']['metadata']['capacity']), 'capacity_formatted' => format_gigabytes($this['product']['metadata']['capacity']),
'capacity' => (int) $this['product']['metadata']['capacity'], 'capacity' => (int) $this['product']['metadata']['capacity'],
'created_at_formatted' => format_date($this['plan']['created']), 'created_at_formatted' => format_date($this['plan']['created']),
'created_at' => $this['plan']['created'], 'created_at' => $this['plan']['created'],
], ],
], ],
]; ];

View File

@@ -17,16 +17,16 @@ class PricingResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => $this['plan']['id'], 'id' => $this['plan']['id'],
'type' => 'plans', 'type' => 'plans',
'attributes' => [ 'attributes' => [
'name' => $this['product']['name'], 'name' => $this['product']['name'],
'description' => $this['product']['description'], 'description' => $this['product']['description'],
'price' => Cashier::formatAmount($this['plan']['amount']), 'price' => Cashier::formatAmount($this['plan']['amount']),
'capacity_formatted' => format_gigabytes($this['product']['metadata']['capacity']), 'capacity_formatted' => format_gigabytes($this['product']['metadata']['capacity']),
'capacity' => (int) $this['product']['metadata']['capacity'], 'capacity' => (int) $this['product']['metadata']['capacity'],
'currency' => config('cashier.currency'), 'currency' => config('cashier.currency'),
'tax_rates' => resolve(StripeService::class)->get_tax_rates($this['plan']['amount']), 'tax_rates' => resolve(StripeService::class)->get_tax_rates($this['plan']['amount']),
], ],
], ],
]; ];

View File

@@ -15,18 +15,18 @@ class ShareResource extends JsonResource
{ {
return [ return [
'data' => [ 'data' => [
'id' => (string) $this->id, 'id' => (string) $this->id,
'type' => 'shares', 'type' => 'shares',
'attributes' => [ 'attributes' => [
'permission' => $this->permission, 'permission' => $this->permission,
'is_protected' => $this->is_protected, 'is_protected' => $this->is_protected,
'item_id' => $this->item_id, 'item_id' => $this->item_id,
'expire_in' => (int) $this->expire_in, 'expire_in' => (int) $this->expire_in,
'token' => $this->token, 'token' => $this->token,
'link' => $this->link, 'link' => $this->link,
'type' => $this->type, 'type' => $this->type,
'created_at' => $this->created_at, 'created_at' => $this->created_at,
'updated_at' => $this->updated_at, 'updated_at' => $this->updated_at,
], ],
], ],
]; ];

View File

@@ -16,20 +16,20 @@ class UserResource extends JsonResource
// TODO: zrefaktorovat // TODO: zrefaktorovat
return [ return [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'user', 'type' => 'user',
'attributes' => [ 'attributes' => [
'storage_capacity' => $this->settings->storage_capacity, 'storage_capacity' => $this->settings->storage_capacity,
'subscription' => $this->subscribed('main'), 'subscription' => $this->subscribed('main'),
'incomplete_payment' => $this->hasIncompletePayment('main') ? route('cashier.payment', $this->subscription('main')->latestPayment()->id) : null, 'incomplete_payment' => $this->hasIncompletePayment('main') ? route('cashier.payment', $this->subscription('main')->latestPayment()->id) : null,
'stripe_customer' => is_null($this->stripe_id) ? false : true, 'stripe_customer' => is_null($this->stripe_id) ? false : true,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email, 'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role, 'role' => $this->role,
'folders' => $this->folder_tree, 'folders' => $this->folder_tree,
'storage' => $this->storage, 'storage' => $this->storage,
'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'), 'created_at_formatted' => format_date($this->created_at, '%d. %B. %Y'),
'created_at' => $this->created_at, 'created_at' => $this->created_at,
'updated_at' => $this->updated_at, 'updated_at' => $this->updated_at,
// OasisDrive // OasisDrive
'has_billing_profile' => $this->invoiceProfile ? true : false, 'has_billing_profile' => $this->invoiceProfile ? true : false,
@@ -37,18 +37,18 @@ class UserResource extends JsonResource
'relationships' => [ 'relationships' => [
'settings' => [ 'settings' => [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'settings', 'type' => 'settings',
'attributes' => [ 'attributes' => [
'avatar' => $this->settings->avatar, 'avatar' => $this->settings->avatar,
'name' => $this->settings->name, 'name' => $this->settings->name,
'address' => $this->settings->address, 'address' => $this->settings->address,
'state' => $this->settings->state, 'state' => $this->settings->state,
'city' => $this->settings->city, 'city' => $this->settings->city,
'postal_code' => $this->settings->postal_code, 'postal_code' => $this->settings->postal_code,
'country' => $this->settings->country, 'country' => $this->settings->country,
'phone_number' => $this->settings->phone_number, 'phone_number' => $this->settings->phone_number,
'timezone' => $this->settings->timezone, 'timezone' => $this->settings->timezone,
// OasisDrive // OasisDrive
'payment_activation' => (integer) $this->settings->payment_activation, 'payment_activation' => (integer) $this->settings->payment_activation,
@@ -57,8 +57,8 @@ class UserResource extends JsonResource
], ],
'favourites' => [ 'favourites' => [
'data' => [ 'data' => [
'id' => $this->id, 'id' => $this->id,
'type' => 'favourite_folders', 'type' => 'favourite_folders',
'attributes' => [ 'attributes' => [
'folders' => $this->favouriteFolders->makeHidden(['pivot']), 'folders' => $this->favouriteFolders->makeHidden(['pivot']),
], ],

View File

@@ -53,32 +53,32 @@ class UserStorageResource extends JsonResource
return [ return [
'data' => [ 'data' => [
'id' => (string) $this->id, 'id' => (string) $this->id,
'type' => 'storage', 'type' => 'storage',
'attributes' => [ 'attributes' => [
'used' => Metric::bytes($this->used_capacity)->format(), 'used' => Metric::bytes($this->used_capacity)->format(),
'capacity' => format_gigabytes($this->settings->storage_capacity), 'capacity' => format_gigabytes($this->settings->storage_capacity),
'percentage' => (float) get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity),
], ],
'meta' => [ 'meta' => [
'images' => [ 'images' => [
'used' => Metric::bytes($images)->format(), 'used' => Metric::bytes($images)->format(),
'percentage' => (float) get_storage_fill_percentage($images, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($images, $this->settings->storage_capacity),
], ],
'audios' => [ 'audios' => [
'used' => Metric::bytes($audios)->format(), 'used' => Metric::bytes($audios)->format(),
'percentage' => (float) get_storage_fill_percentage($audios, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($audios, $this->settings->storage_capacity),
], ],
'videos' => [ 'videos' => [
'used' => Metric::bytes($videos)->format(), 'used' => Metric::bytes($videos)->format(),
'percentage' => (float) get_storage_fill_percentage($videos, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($videos, $this->settings->storage_capacity),
], ],
'documents' => [ 'documents' => [
'used' => Metric::bytes($documents)->format(), 'used' => Metric::bytes($documents)->format(),
'percentage' => (float) get_storage_fill_percentage($documents, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($documents, $this->settings->storage_capacity),
], ],
'others' => [ 'others' => [
'used' => Metric::bytes($others)->format(), 'used' => Metric::bytes($others)->format(),
'percentage' => (float) get_storage_fill_percentage($others, $this->settings->storage_capacity), 'percentage' => (float) get_storage_fill_percentage($others, $this->settings->storage_capacity),
], ],
], ],

View File

@@ -22,19 +22,19 @@ class UserSubscription extends JsonResource
return [ return [
'data' => [ 'data' => [
'id' => $subscription['plan']['id'], 'id' => $subscription['plan']['id'],
'type' => 'subscription', 'type' => 'subscription',
'attributes' => [ 'attributes' => [
'incomplete' => $this->subscription('main')->incomplete(), 'incomplete' => $this->subscription('main')->incomplete(),
'active' => $this->subscription('main')->active(), 'active' => $this->subscription('main')->active(),
'canceled' => $this->subscription('main')->cancelled(), 'canceled' => $this->subscription('main')->cancelled(),
'name' => $subscription['product']['name'], 'name' => $subscription['product']['name'],
'capacity' => (int) $subscription['product']['metadata']['capacity'], 'capacity' => (int) $subscription['product']['metadata']['capacity'],
'capacity_formatted' => format_gigabytes($subscription['product']['metadata']['capacity']), 'capacity_formatted' => format_gigabytes($subscription['product']['metadata']['capacity']),
'slug' => $subscription['plan']['id'], 'slug' => $subscription['plan']['id'],
'canceled_at' => format_date($active_subscription['canceled_at'], '%d. %B. %Y'), 'canceled_at' => format_date($active_subscription['canceled_at'], '%d. %B. %Y'),
'created_at' => format_date($active_subscription['current_period_start'], '%d. %B. %Y'), 'created_at' => format_date($active_subscription['current_period_start'], '%d. %B. %Y'),
'ends_at' => format_date($active_subscription['current_period_end'], '%d. %B. %Y'), 'ends_at' => format_date($active_subscription['current_period_end'], '%d. %B. %Y'),
], ],
], ],
]; ];

View File

@@ -891,9 +891,9 @@ if (! function_exists('get_files_for_zip')) {
// Push file to collection // Push file to collection
$folders->files->each(function ($file) use ($files, $path) { $folders->files->each(function ($file) use ($files, $path) {
$files->push([ $files->push([
'name' => $file->name, 'name' => $file->name,
'basename' => $file->basename, 'basename' => $file->basename,
'mimetype' => $file->mimetype, 'mimetype' => $file->mimetype,
'folder_path' => implode('/', $path), 'folder_path' => implode('/', $path),
]); ]);
}); });
@@ -983,7 +983,7 @@ if (! function_exists('replace_occurrence')) {
{ {
$occurrences = $values->map(function ($message, $key) { $occurrences = $values->map(function ($message, $key) {
return [ return [
'key' => ":$key", 'key' => ":$key",
'message' => $message, 'message' => $message,
]; ];
}); });

View File

@@ -136,10 +136,10 @@ class File extends Model
: get_pretty_name($this->attributes['basename'], $this->attributes['name'], $this->attributes['mimetype']); : get_pretty_name($this->attributes['basename'], $this->attributes['name'], $this->attributes['mimetype']);
$header = [ $header = [
'ResponseAcceptRanges' => 'bytes', 'ResponseAcceptRanges' => 'bytes',
'ResponseContentType' => $this->attributes['mimetype'], 'ResponseContentType' => $this->attributes['mimetype'],
'ResponseContentLength' => $this->attributes['filesize'], 'ResponseContentLength' => $this->attributes['filesize'],
'ResponseContentRange' => 'bytes 0-600/' . $this->attributes['filesize'], 'ResponseContentRange' => 'bytes 0-600/' . $this->attributes['filesize'],
'ResponseContentDisposition' => 'attachment; filename=' . $file_pretty_name, 'ResponseContentDisposition' => 'attachment; filename=' . $file_pretty_name,
]; ];
@@ -167,8 +167,8 @@ class File extends Model
$name = Str::slug($array['name'], ' '); $name = Str::slug($array['name'], ' ');
return [ return [
'id' => $this->id, 'id' => $this->id,
'name' => $name, 'name' => $name,
'nameNgrams' => utf8_encode((new TNTIndexer)->buildTrigrams(implode(', ', [$name]))), 'nameNgrams' => utf8_encode((new TNTIndexer)->buildTrigrams(implode(', ', [$name]))),
]; ];
} }

View File

@@ -64,8 +64,8 @@ class Folder extends Model
$name = Str::slug($array['name'], ' '); $name = Str::slug($array['name'], ' ');
return [ return [
'id' => $this->id, 'id' => $this->id,
'name' => $name, 'name' => $name,
'nameNgrams' => utf8_encode((new TNTIndexer)->buildTrigrams(implode(', ', [$name]))), 'nameNgrams' => utf8_encode((new TNTIndexer)->buildTrigrams(implode(', ', [$name]))),
]; ];
} }

View File

@@ -12,7 +12,7 @@ class Invoice extends Model
protected $casts = [ protected $casts = [
'seller' => 'array', 'seller' => 'array',
'client' => 'array', 'client' => 'array',
'bag' => 'array', 'bag' => 'array',
]; ];
public function getMimetype() public function getMimetype()

View File

@@ -12,9 +12,9 @@ use Kyslik\ColumnSortable\Sortable;
use App\Notifications\ResetPassword; use App\Notifications\ResetPassword;
use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\Storage;
use Illuminate\Notifications\Notifiable; use Illuminate\Notifications\Notifiable;
use Makingcg\Invoice\App\Traits\Invoiceable;
use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Foundation\Auth\User as Authenticatable;
use Makingcg\Invoice\App\Traits\Invoiceable;
class User extends Authenticatable class User extends Authenticatable
{ {
@@ -35,7 +35,7 @@ class User extends Authenticatable
]; ];
protected $casts = [ protected $casts = [
'id' => 'string', 'id' => 'string',
'email_verified_at' => 'datetime', 'email_verified_at' => 'datetime',
]; ];
@@ -88,15 +88,15 @@ class User extends Authenticatable
// Get user storage usage // Get user storage usage
if (! $is_storage_limit) { if (! $is_storage_limit) {
return [ return [
'used' => $this->used_capacity, 'used' => $this->used_capacity,
'used_formatted' => Metric::bytes($this->used_capacity)->format(), 'used_formatted' => Metric::bytes($this->used_capacity)->format(),
]; ];
} }
return [ return [
'used' => (float) get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity), 'used' => (float) get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity),
'used_formatted' => get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity) . '%', 'used_formatted' => get_storage_fill_percentage($this->used_capacity, $this->settings->storage_capacity) . '%',
'capacity' => $this->settings->storage_capacity, 'capacity' => $this->settings->storage_capacity,
'capacity_formatted' => format_gigabytes($this->settings->storage_capacity), 'capacity_formatted' => format_gigabytes($this->settings->storage_capacity),
]; ];
} }
@@ -138,13 +138,13 @@ class User extends Authenticatable
public function setBilling($billing) public function setBilling($billing)
{ {
$this->settings()->update([ $this->settings()->update([
'address' => $billing['billing_address'], 'address' => $billing['billing_address'],
'city' => $billing['billing_city'], 'city' => $billing['billing_city'],
'country' => $billing['billing_country'], 'country' => $billing['billing_country'],
'name' => $billing['billing_name'], 'name' => $billing['billing_name'],
'phone_number' => $billing['billing_phone_number'], 'phone_number' => $billing['billing_phone_number'],
'postal_code' => $billing['billing_postal_code'], 'postal_code' => $billing['billing_postal_code'],
'state' => $billing['billing_state'], 'state' => $billing['billing_state'],
]); ]);
return $this->settings; return $this->settings;

View File

@@ -48,9 +48,9 @@ class PaymentRequiredNotification extends Notification
->greeting(__t('mail_greeting')) ->greeting(__t('mail_greeting'))
->line(__t('mail_order_line_1')) ->line(__t('mail_order_line_1'))
->line(__t('mail_tariff', [ ->line(__t('mail_tariff', [
'name' => $this->plan['product']['name'], 'name' => $this->plan['product']['name'],
'storage' => Cashier::formatAmount($this->plan['plan']['amount']), 'storage' => Cashier::formatAmount($this->plan['plan']['amount']),
'price' => format_gigabytes($this->plan['product']['metadata']['capacity']), 'price' => format_gigabytes($this->plan['product']['metadata']['capacity']),
])) ]))
->action(__t('mail_activation_action'), $url) ->action(__t('mail_activation_action'), $url)
->line(__t('mail_order_line_2')) ->line(__t('mail_order_line_2'))

View File

@@ -48,9 +48,9 @@ class ReminderForPaymentRequiredNotification extends Notification
->greeting(__t('mail_greeting')) ->greeting(__t('mail_greeting'))
->line(__t('mail_reminder_line_1')) ->line(__t('mail_reminder_line_1'))
->line(__t('mail_tariff', [ ->line(__t('mail_tariff', [
'name' => $this->plan['product']['name'], 'name' => $this->plan['product']['name'],
'storage' => Cashier::formatAmount($this->plan['plan']['amount']), 'storage' => Cashier::formatAmount($this->plan['plan']['amount']),
'price' => format_gigabytes($this->plan['product']['metadata']['capacity']), 'price' => format_gigabytes($this->plan['product']['metadata']['capacity']),
])) ]))
->line(__t('mail_reminder_line_2')) ->line(__t('mail_reminder_line_2'))
->action(__t('mail_activation_action'), $url) ->action(__t('mail_activation_action'), $url)

View File

@@ -20,15 +20,15 @@ class DemoService
public function create_folder($request) public function create_folder($request)
{ {
return [ return [
'user_id' => 1, 'user_id' => 1,
'id' => Str::uuid(), 'id' => Str::uuid(),
'parent_id' => random_int(1000, 9999), 'parent_id' => random_int(1000, 9999),
'name' => $request->name, 'name' => $request->name,
'type' => 'folder', 'type' => 'folder',
'author' => $request->user() ? 'user' : 'visitor', 'author' => $request->user() ? 'user' : 'visitor',
'items' => '0', 'items' => '0',
'color' => isset($request->icon['color']) ? $request->icon['color'] : null, 'color' => isset($request->icon['color']) ? $request->icon['color'] : null,
'emoji' => isset($request->icon['emoji']) ? $request->icon['emoji'] : null, 'emoji' => isset($request->icon['emoji']) ? $request->icon['emoji'] : null,
'updated_at' => now()->format('j M Y \a\t H:i'), 'updated_at' => now()->format('j M Y \a\t H:i'),
'created_at' => now()->format('j M Y \a\t H:i'), 'created_at' => now()->format('j M Y \a\t H:i'),
]; ];
@@ -63,7 +63,7 @@ class DemoService
} }
return [ return [
'id' => $request->id, 'id' => $request->id,
'name' => $request->name, 'name' => $request->name,
'type' => $request->type, 'type' => $request->type,
]; ];
@@ -86,16 +86,16 @@ class DemoService
$filetype = get_file_type($file->getMimeType()); $filetype = get_file_type($file->getMimeType());
return [ return [
'id' => Str::uuid(), 'id' => Str::uuid(),
'folder_id' => $request->parent_id, 'folder_id' => $request->parent_id,
'thumbnail' => 'data:' . $request->file('file')->getMimeType() . ';base64, ' . base64_encode(file_get_contents($request->file('file'))), 'thumbnail' => 'data:' . $request->file('file')->getMimeType() . ';base64, ' . base64_encode(file_get_contents($request->file('file'))),
'name' => $file->getClientOriginalName(), 'name' => $file->getClientOriginalName(),
'basename' => $filename, 'basename' => $filename,
'mimetype' => $file->getClientOriginalExtension(), 'mimetype' => $file->getClientOriginalExtension(),
'filesize' => Metric::bytes($filesize)->format(), 'filesize' => Metric::bytes($filesize)->format(),
'type' => $filetype, 'type' => $filetype,
'file_url' => 'https://vuefilemanager.hi5ve.digital/assets/vue-file-manager-preview.jpg', 'file_url' => 'https://vuefilemanager.hi5ve.digital/assets/vue-file-manager-preview.jpg',
'author' => $request->user() ? 'user' : 'visitor', 'author' => $request->user() ? 'user' : 'visitor',
'created_at' => now()->format('j M Y \a\t H:i'), 'created_at' => now()->format('j M Y \a\t H:i'),
'updated_at' => now()->format('j M Y \a\t H:i'), 'updated_at' => now()->format('j M Y \a\t H:i'),
]; ];

View File

@@ -88,9 +88,9 @@ class FileManagerService
// Store zip record // Store zip record
return Zip::create([ return Zip::create([
'user_id' => $shared->user_id ?? Auth::id(), 'user_id' => $shared->user_id ?? Auth::id(),
'shared_token' => $shared->token ?? null, 'shared_token' => $shared->token ?? null,
'basename' => $zip_name, 'basename' => $zip_name,
]); ]);
} }
@@ -146,9 +146,9 @@ class FileManagerService
// Store zip record // Store zip record
return Zip::create([ return Zip::create([
'user_id' => $shared->user_id ?? Auth::id(), 'user_id' => $shared->user_id ?? Auth::id(),
'shared_token' => $shared->token ?? null, 'shared_token' => $shared->token ?? null,
'basename' => $zip_name, 'basename' => $zip_name,
]); ]);
} }
@@ -163,11 +163,11 @@ class FileManagerService
{ {
return Folder::create([ return Folder::create([
'parent_id' => $request->parent_id, 'parent_id' => $request->parent_id,
'author' => $shared ? 'visitor' : 'user', 'author' => $shared ? 'visitor' : 'user',
'user_id' => $shared ? $shared->user_id : Auth::id(), 'user_id' => $shared ? $shared->user_id : Auth::id(),
'name' => $request->name, 'name' => $request->name,
'color' => $request->color ?? null, 'color' => $request->color ?? null,
'emoji' => $request->emoji ?? null, 'emoji' => $request->emoji ?? null,
]); ]);
} }
@@ -398,16 +398,16 @@ class FileManagerService
// Return new file // Return new file
return UserFile::create([ return UserFile::create([
'mimetype' => get_file_type_from_mimetype($file_mimetype), 'mimetype' => get_file_type_from_mimetype($file_mimetype),
'type' => get_file_type($file_mimetype), 'type' => get_file_type($file_mimetype),
'folder_id' => $request->folder_id, 'folder_id' => $request->folder_id,
'metadata' => $metadata, 'metadata' => $metadata,
'name' => $user_file_name, 'name' => $user_file_name,
'basename' => $disk_file_name, 'basename' => $disk_file_name,
'author' => $shared ? 'visitor' : 'user', 'author' => $shared ? 'visitor' : 'user',
'thumbnail' => $thumbnail, 'thumbnail' => $thumbnail,
'filesize' => $file_size, 'filesize' => $file_size,
'user_id' => $user_id, 'user_id' => $user_id,
]); ]);
} }
} }

View File

@@ -145,7 +145,7 @@ class HelperService
// TODO: replace local files with temp folder // TODO: replace local files with temp folder
$uploader = new MultipartUploader($client, config('filesystems.disks.local.root') . "/files/$user_id/$file", [ $uploader = new MultipartUploader($client, config('filesystems.disks.local.root') . "/files/$user_id/$file", [
'bucket' => $adapter->getBucket(), 'bucket' => $adapter->getBucket(),
'key' => "files/$user_id/$file", 'key' => "files/$user_id/$file",
]); ]);
try { try {
@@ -228,10 +228,10 @@ class HelperService
return response() return response()
->download(Storage::path($path), $pretty_name, [ ->download(Storage::path($path), $pretty_name, [
'Accept-Ranges' => 'bytes', 'Accept-Ranges' => 'bytes',
'Content-Type' => Storage::mimeType($path), 'Content-Type' => Storage::mimeType($path),
'Content-Length' => Storage::size($path), 'Content-Length' => Storage::size($path),
'Content-Range' => 'bytes 0-600/' . Storage::size($path), 'Content-Range' => 'bytes 0-600/' . Storage::size($path),
'Content-Disposition' => "attachment; filename=$pretty_name", 'Content-Disposition' => "attachment; filename=$pretty_name",
]); ]);
} }

View File

@@ -28,9 +28,9 @@ class LanguageService
$translations = $translations[strtolower($license)] $translations = $translations[strtolower($license)]
->map(function ($value, $key) use ($locale) { ->map(function ($value, $key) use ($locale) {
return [ return [
'lang' => $locale, 'lang' => $locale,
'value' => $value, 'value' => $value,
'key' => $key, 'key' => $key,
]; ];
})->toArray(); })->toArray();
@@ -75,9 +75,9 @@ class LanguageService
$translations = $newbies $translations = $newbies
->map(function ($value, $key) use ($locale) { ->map(function ($value, $key) use ($locale) {
return [ return [
'lang' => $locale, 'lang' => $locale,
'value' => $value, 'value' => $value,
'key' => $key, 'key' => $key,
]; ];
})->toArray(); })->toArray();

View File

@@ -154,7 +154,7 @@ class CzechRegisterSearchService
$tidy = new \tidy(); $tidy = new \tidy();
$html = $tidy->repairString($html, [ $html = $tidy->repairString($html, [
'output-xhtml' => true, 'output-xhtml' => true,
'show-body-only' => true, 'show-body-only' => true,
], 'utf8'); ], 'utf8');
@@ -227,11 +227,11 @@ class CzechRegisterSearchService
$out[] = [ $out[] = [
'name' => self::trimQuotes($name), 'name' => self::trimQuotes($name),
'ico' => preg_replace('/[^\d]/', '', $ico), 'ico' => preg_replace('/[^\d]/', '', $ico),
'city' => self::trimQuotes($city), 'city' => self::trimQuotes($city),
// pre polia s adresou konzistentne so smartform naseptavacem // pre polia s adresou konzistentne so smartform naseptavacem
'addr_city' => self::trimQuotes($addr_city), 'addr_city' => self::trimQuotes($addr_city),
'addr_zip' => preg_replace('/[^\d]/', '', $addr_zip), 'addr_zip' => preg_replace('/[^\d]/', '', $addr_zip),
'addr_streetnr' => self::trimQuotes($addr_streetnr), 'addr_streetnr' => self::trimQuotes($addr_streetnr),
// len pre kontrolu - plna povodna adresa // len pre kontrolu - plna povodna adresa
'addr_full' => self::trimQuotes($addr), 'addr_full' => self::trimQuotes($addr),

View File

@@ -56,12 +56,12 @@ class SetupService
public function seed_default_language() public function seed_default_language()
{ {
Language::create([ Language::create([
'name' => 'English', 'name' => 'English',
'locale' => 'en', 'locale' => 'en',
]); ]);
Setting::create([ Setting::create([
'name' => 'language', 'name' => 'language',
'value' => 'en', 'value' => 'en',
]); ]);
} }

View File

@@ -69,10 +69,10 @@ class StripeService
$tax = $amount * ($rate['percentage'] / 100); $tax = $amount * ($rate['percentage'] / 100);
array_push($rates_public, [ array_push($rates_public, [
'id' => $rate['id'], 'id' => $rate['id'],
'active' => $rate['active'], 'active' => $rate['active'],
'country' => $rate['country'], 'country' => $rate['country'],
'percentage' => $rate['percentage'], 'percentage' => $rate['percentage'],
'plan_price_formatted' => Cashier::formatAmount(round($amount + $tax)), 'plan_price_formatted' => Cashier::formatAmount(round($amount + $tax)),
]); ]);
} }
@@ -174,14 +174,14 @@ class StripeService
public function updateCustomerDetails($user) public function updateCustomerDetails($user)
{ {
$user->updateStripeCustomer([ $user->updateStripeCustomer([
'name' => $user->settings->name, 'name' => $user->settings->name,
'phone' => $user->settings->phone_number, 'phone' => $user->settings->phone_number,
'address' => [ 'address' => [
'line1' => $user->settings->address, 'line1' => $user->settings->address,
'city' => $user->settings->city, 'city' => $user->settings->city,
'country' => $user->settings->country, 'country' => $user->settings->country,
'postal_code' => $user->settings->postal_code, 'postal_code' => $user->settings->postal_code,
'state' => $user->settings->state, 'state' => $user->settings->state,
], ],
'preferred_locales' => [ 'preferred_locales' => [
$user->settings->country, 'en', $user->settings->country, 'en',
@@ -211,7 +211,7 @@ class StripeService
// Push data to $plan container // Push data to $plan container
if ($product['active'] && isset($product['metadata']['capacity'])) { if ($product['active'] && isset($product['metadata']['capacity'])) {
array_push($plans, [ array_push($plans, [
'plan' => $plan, 'plan' => $plan,
'product' => $product, 'product' => $product,
]); ]);
} }
@@ -243,7 +243,7 @@ class StripeService
// Push data to $plan container // Push data to $plan container
if ($product['active'] && isset($product['metadata']['capacity'])) { if ($product['active'] && isset($product['metadata']['capacity'])) {
array_push($plans, [ array_push($plans, [
'plan' => $plan, 'plan' => $plan,
'product' => $product, 'product' => $product,
]); ]);
} }
@@ -270,7 +270,7 @@ class StripeService
$product = $this->stripe->products()->find($plan['product']); $product = $this->stripe->products()->find($plan['product']);
return [ return [
'plan' => $plan, 'plan' => $plan,
'product' => $product, 'product' => $product,
]; ];
}); });
@@ -286,34 +286,34 @@ class StripeService
{ {
if ($data instanceof Request) { if ($data instanceof Request) {
$plan = [ $plan = [
'name' => $data->input('attributes.name'), 'name' => $data->input('attributes.name'),
'description' => $data->input('attributes.description'), 'description' => $data->input('attributes.description'),
'price' => $data->input('attributes.price'), 'price' => $data->input('attributes.price'),
'capacity' => $data->input('attributes.capacity'), 'capacity' => $data->input('attributes.capacity'),
]; ];
} else { } else {
$plan = [ $plan = [
'name' => $data['attributes']['name'], 'name' => $data['attributes']['name'],
'description' => $data['attributes']['description'], 'description' => $data['attributes']['description'],
'price' => $data['attributes']['price'], 'price' => $data['attributes']['price'],
'capacity' => $data['attributes']['capacity'], 'capacity' => $data['attributes']['capacity'],
]; ];
} }
$product = $this->stripe->products()->create([ $product = $this->stripe->products()->create([
'name' => $plan['name'], 'name' => $plan['name'],
'description' => $plan['description'], 'description' => $plan['description'],
'metadata' => [ 'metadata' => [
'capacity' => $plan['capacity'], 'capacity' => $plan['capacity'],
], ],
]); ]);
$plan = $this->stripe->plans()->create([ $plan = $this->stripe->plans()->create([
'id' => Str::slug($plan['name']), 'id' => Str::slug($plan['name']),
'amount' => $plan['price'], 'amount' => $plan['price'],
'currency' => config('cashier.currency'), 'currency' => config('cashier.currency'),
'interval' => 'month', 'interval' => 'month',
'product' => $product['id'], 'product' => $product['id'],
]); ]);
return compact('plan', 'product'); return compact('plan', 'product');

View File

@@ -191,44 +191,44 @@ return [
*/ */
'aliases' => [ 'aliases' => [
'App' => Illuminate\Support\Facades\App::class, 'App' => Illuminate\Support\Facades\App::class,
'Arr' => Illuminate\Support\Arr::class, 'Arr' => Illuminate\Support\Arr::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class, 'Auth' => Illuminate\Support\Facades\Auth::class,
'Blade' => Illuminate\Support\Facades\Blade::class, 'Blade' => Illuminate\Support\Facades\Blade::class,
'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
'Bus' => Illuminate\Support\Facades\Bus::class, 'Bus' => Illuminate\Support\Facades\Bus::class,
'Cache' => Illuminate\Support\Facades\Cache::class, 'Cache' => Illuminate\Support\Facades\Cache::class,
'Config' => Illuminate\Support\Facades\Config::class, 'Config' => Illuminate\Support\Facades\Config::class,
'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class,
'Crypt' => Illuminate\Support\Facades\Crypt::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class,
'DB' => Illuminate\Support\Facades\DB::class, 'DB' => Illuminate\Support\Facades\DB::class,
'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
'Event' => Illuminate\Support\Facades\Event::class, 'Event' => Illuminate\Support\Facades\Event::class,
'File' => Illuminate\Support\Facades\File::class, 'File' => Illuminate\Support\Facades\File::class,
'Gate' => Illuminate\Support\Facades\Gate::class, 'Gate' => Illuminate\Support\Facades\Gate::class,
'Hash' => Illuminate\Support\Facades\Hash::class, 'Hash' => Illuminate\Support\Facades\Hash::class,
'Lang' => Illuminate\Support\Facades\Lang::class, 'Lang' => Illuminate\Support\Facades\Lang::class,
'Log' => Illuminate\Support\Facades\Log::class, 'Log' => Illuminate\Support\Facades\Log::class,
'Mail' => Illuminate\Support\Facades\Mail::class, 'Mail' => Illuminate\Support\Facades\Mail::class,
'Notification' => Illuminate\Support\Facades\Notification::class, 'Notification' => Illuminate\Support\Facades\Notification::class,
'Password' => Illuminate\Support\Facades\Password::class, 'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class, 'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class, 'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class, 'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class, 'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class, 'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class, 'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class, 'Session' => Illuminate\Support\Facades\Session::class,
'Storage' => Illuminate\Support\Facades\Storage::class, 'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class, 'Str' => Illuminate\Support\Str::class,
'URL' => Illuminate\Support\Facades\URL::class, 'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class, 'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Image' => Intervention\Image\Facades\Image::class, 'Image' => Intervention\Image\Facades\Image::class,
'Stripe' => Cartalyst\Stripe\Laravel\Facades\Stripe::class, 'Stripe' => Cartalyst\Stripe\Laravel\Facades\Stripe::class,
'Crawler' => Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect::class, 'Crawler' => Jaybizzle\LaravelCrawlerDetect\Facades\LaravelCrawlerDetect::class,
//'Madzipper' => Madnest\Madzipper\Madzipper::class, //'Madzipper' => Madnest\Madzipper\Madzipper::class,
], ],

View File

@@ -13,7 +13,7 @@ return [
*/ */
'defaults' => [ 'defaults' => [
'guard' => 'web', 'guard' => 'web',
'passwords' => 'users', 'passwords' => 'users',
], ],
@@ -36,14 +36,14 @@ return [
'guards' => [ 'guards' => [
'web' => [ 'web' => [
'driver' => 'session', 'driver' => 'session',
'provider' => 'users', 'provider' => 'users',
], ],
'api' => [ 'api' => [
'driver' => 'token', 'driver' => 'token',
'provider' => 'users', 'provider' => 'users',
'hash' => false, 'hash' => false,
], ],
], ],
@@ -67,7 +67,7 @@ return [
'providers' => [ 'providers' => [
'users' => [ 'users' => [
'driver' => 'eloquent', 'driver' => 'eloquent',
'model' => App\Models\User::class, 'model' => App\Models\User::class,
], ],
// 'users' => [ // 'users' => [
@@ -94,8 +94,8 @@ return [
'passwords' => [ 'passwords' => [
'users' => [ 'users' => [
'provider' => 'users', 'provider' => 'users',
'table' => 'password_resets', 'table' => 'password_resets',
'expire' => 60, 'expire' => 60,
'throttle' => 60, 'throttle' => 60,
], ],
], ],

View File

@@ -145,12 +145,12 @@ return [
*/ */
'notifications' => [ 'notifications' => [
'notifications' => [ 'notifications' => [
\Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'], \Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'], \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'], \Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'], \Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'], \Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'], \Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'],
], ],
/* /*
@@ -189,10 +189,10 @@ return [
*/ */
'monitor_backups' => [ 'monitor_backups' => [
[ [
'name' => env('APP_NAME', 'laravel-backup'), 'name' => env('APP_NAME', 'laravel-backup'),
'disks' => ['local'], 'disks' => ['local'],
'health_checks' => [ 'health_checks' => [
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000, \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
], ],
], ],

View File

@@ -29,18 +29,18 @@ return [
'connections' => [ 'connections' => [
'pusher' => [ 'pusher' => [
'driver' => 'pusher', 'driver' => 'pusher',
'key' => env('PUSHER_APP_KEY'), 'key' => env('PUSHER_APP_KEY'),
'secret' => env('PUSHER_APP_SECRET'), 'secret' => env('PUSHER_APP_SECRET'),
'app_id' => env('PUSHER_APP_ID'), 'app_id' => env('PUSHER_APP_ID'),
'options' => [ 'options' => [
'cluster' => env('PUSHER_APP_CLUSTER'), 'cluster' => env('PUSHER_APP_CLUSTER'),
'useTLS' => true, 'useTLS' => true,
], ],
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => 'default', 'connection' => 'default',
], ],

View File

@@ -40,20 +40,20 @@ return [
], ],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'table' => 'cache', 'table' => 'cache',
'connection' => null, 'connection' => null,
], ],
'file' => [ 'file' => [
'driver' => 'file', 'driver' => 'file',
'path' => storage_path('framework/cache/data'), 'path' => storage_path('framework/cache/data'),
], ],
'memcached' => [ 'memcached' => [
'driver' => 'memcached', 'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [ 'sasl' => [
env('MEMCACHED_USERNAME'), env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'), env('MEMCACHED_PASSWORD'),
], ],
@@ -62,24 +62,24 @@ return [
], ],
'servers' => [ 'servers' => [
[ [
'host' => env('MEMCACHED_HOST', '127.0.0.1'), 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211), 'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100, 'weight' => 100,
], ],
], ],
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => 'cache', 'connection' => 'cache',
], ],
'dynamodb' => [ 'dynamodb' => [
'driver' => 'dynamodb', 'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'), 'endpoint' => env('DYNAMODB_ENDPOINT'),
], ],
], ],

View File

@@ -41,7 +41,7 @@ return [
*/ */
'webhook' => [ 'webhook' => [
'secret' => env('STRIPE_WEBHOOK_SECRET'), 'secret' => env('STRIPE_WEBHOOK_SECRET'),
'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300), 'tolerance' => env('STRIPE_WEBHOOK_TOLERANCE', 300),
], ],

View File

@@ -4,177 +4,177 @@ return [
'pages' => [ 'pages' => [
[ [
'visibility' => 1, 'visibility' => 1,
'title' => 'Terms of Service', 'title' => 'Terms of Service',
'slug' => 'terms-of-service', 'slug' => 'terms-of-service',
'content' => 'Laoreet cum hendrerit iaculis arcu phasellus congue et elementum, pharetra risus imperdiet aptent posuere rutrum parturient blandit, dapibus tellus ridiculus potenti aliquam sociis turpis. Nullam commodo eget laoreet risus cursus vel placerat, in dapibus sociis gravida faucibus sodales, fringilla potenti elit semper iaculis ullamcorper. Dignissim vulputate pretium montes pellentesque mollis, consectetur adipiscing curabitur semper sem rhoncus, litora viverra curae proin.', 'content' => 'Laoreet cum hendrerit iaculis arcu phasellus congue et elementum, pharetra risus imperdiet aptent posuere rutrum parturient blandit, dapibus tellus ridiculus potenti aliquam sociis turpis. Nullam commodo eget laoreet risus cursus vel placerat, in dapibus sociis gravida faucibus sodales, fringilla potenti elit semper iaculis ullamcorper. Dignissim vulputate pretium montes pellentesque mollis, consectetur adipiscing curabitur semper sem rhoncus, litora viverra curae proin.',
], ],
[ [
'visibility' => 1, 'visibility' => 1,
'title' => 'Privacy Policy', 'title' => 'Privacy Policy',
'slug' => 'privacy-policy', 'slug' => 'privacy-policy',
'content' => 'Sit orci justo augue maecenas laoreet consectetur natoque magnis in viverra sagittis, himenaeos urna facilisis mus proin primis diam accumsan tristique inceptos. Primis quisque posuere sit praesent lobortis feugiat semper convallis facilisis, vivamus gravida ligula nostra curae eu donec duis parturient senectus, arcu dolor viverra penatibus natoque cum nisi commodo. Litora sociis mauris justo nullam suspendisse mattis maecenas nascetur congue phasellus cras ultricies posuere donec, dapibus egestas diam lacus ornare montes senectus tincidunt eu taciti sed consequat.', 'content' => 'Sit orci justo augue maecenas laoreet consectetur natoque magnis in viverra sagittis, himenaeos urna facilisis mus proin primis diam accumsan tristique inceptos. Primis quisque posuere sit praesent lobortis feugiat semper convallis facilisis, vivamus gravida ligula nostra curae eu donec duis parturient senectus, arcu dolor viverra penatibus natoque cum nisi commodo. Litora sociis mauris justo nullam suspendisse mattis maecenas nascetur congue phasellus cras ultricies posuere donec, dapibus egestas diam lacus ornare montes senectus tincidunt eu taciti sed consequat.',
], ],
[ [
'visibility' => 1, 'visibility' => 1,
'title' => 'Cookie Policy', 'title' => 'Cookie Policy',
'slug' => 'cookie-policy', 'slug' => 'cookie-policy',
'content' => 'Metus penatibus ligula dolor natoque non habitasse laoreet facilisis, libero vivamus eget semper vulputate interdum integer, phasellus lorem enim blandit consectetur nullam sollicitudin. Hendrerit interdum luctus ut in molestie himenaeos eros cum laoreet parturient est, eu lectus hac et netus viverra dictumst congue elit sem senectus litora, fames scelerisque adipiscing inceptos fringilla montes sociosqu suscipit auctor potenti. Elementum lacus vulputate viverra ac morbi ligula ipsum facilisi, sit eu imperdiet lacinia congue dis vitae.', 'content' => 'Metus penatibus ligula dolor natoque non habitasse laoreet facilisis, libero vivamus eget semper vulputate interdum integer, phasellus lorem enim blandit consectetur nullam sollicitudin. Hendrerit interdum luctus ut in molestie himenaeos eros cum laoreet parturient est, eu lectus hac et netus viverra dictumst congue elit sem senectus litora, fames scelerisque adipiscing inceptos fringilla montes sociosqu suscipit auctor potenti. Elementum lacus vulputate viverra ac morbi ligula ipsum facilisi, sit eu imperdiet lacinia congue dis vitae.',
], ],
], ],
'content' => [ 'content' => [
'regular' => [ 'regular' => [
[ [
'name' => 'section_features', 'name' => 'section_features',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'section_feature_boxes', 'name' => 'section_feature_boxes',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'section_get_started', 'name' => 'section_get_started',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'header_title', 'name' => 'header_title',
'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage', 'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage',
], ],
[ [
'name' => 'header_description', 'name' => 'header_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'features_title', 'name' => 'features_title',
'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market', 'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market',
], ],
[ [
'name' => 'features_description', 'name' => 'features_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'feature_title_1', 'name' => 'feature_title_1',
'value' => 'Truly Freedom', 'value' => 'Truly Freedom',
], ],
[ [
'name' => 'feature_description_1', 'name' => 'feature_description_1',
'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.', 'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.',
], ],
[ [
'name' => 'feature_title_2', 'name' => 'feature_title_2',
'value' => 'The Sky is the Limit', 'value' => 'The Sky is the Limit',
], ],
[ [
'name' => 'feature_description_2', 'name' => 'feature_description_2',
'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.', 'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.',
], ],
[ [
'name' => 'feature_title_3', 'name' => 'feature_title_3',
'value' => 'No Monthly Fees', 'value' => 'No Monthly Fees',
], ],
[ [
'name' => 'feature_description_3', 'name' => 'feature_description_3',
'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.', 'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.',
], ],
[ [
'name' => 'get_started_title', 'name' => 'get_started_title',
'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?', 'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?',
], ],
[ [
'name' => 'get_started_description', 'name' => 'get_started_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'footer_content', 'name' => 'footer_content',
'value' => '© 2021 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>', 'value' => '© 2021 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank">Hi5Ve.Digital</a>',
], ],
[ [
'name' => 'allow_homepage', 'name' => 'allow_homepage',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'app_color', 'name' => 'app_color',
'value' => '#00BC7E', 'value' => '#00BC7E',
], ],
], ],
'extended' => [ 'extended' => [
[ [
'name' => 'section_features', 'name' => 'section_features',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'section_feature_boxes', 'name' => 'section_feature_boxes',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'section_pricing_content', 'name' => 'section_pricing_content',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'section_get_started', 'name' => 'section_get_started',
'value' => 1, 'value' => 1,
], ],
[ [
'name' => 'header_title', 'name' => 'header_title',
'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage', 'value' => 'Simple <span class="text-theme">&</span> Powerful Personal Cloud Storage',
], ],
[ [
'name' => 'header_description', 'name' => 'header_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'features_title', 'name' => 'features_title',
'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market', 'value' => 'The Fastest Growing <span class="text-theme">File Manager</span> on the CodeCanyon Market',
], ],
[ [
'name' => 'features_description', 'name' => 'features_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'feature_title_1', 'name' => 'feature_title_1',
'value' => 'Truly Freedom', 'value' => 'Truly Freedom',
], ],
[ [
'name' => 'feature_description_1', 'name' => 'feature_description_1',
'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.', 'value' => 'You have full control over VueFileManager, no third authorities will control your service or usage, only you.',
], ],
[ [
'name' => 'feature_title_2', 'name' => 'feature_title_2',
'value' => 'The Sky is the Limit', 'value' => 'The Sky is the Limit',
], ],
[ [
'name' => 'feature_description_2', 'name' => 'feature_description_2',
'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.', 'value' => 'VueFileManager is cloud storage software. You have to install and running application on your own server hosting.',
], ],
[ [
'name' => 'feature_title_3', 'name' => 'feature_title_3',
'value' => 'No Monthly Fees', 'value' => 'No Monthly Fees',
], ],
[ [
'name' => 'feature_description_3', 'name' => 'feature_description_3',
'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.', 'value' => 'When you running VueFileManager on your own server hosting, anybody can\'t control your content or resell your user data. Your data is safe.',
], ],
[ [
'name' => 'pricing_title', 'name' => 'pricing_title',
'value' => 'Pick the <span class="text-theme">Best Plan</span> For Your Needs', 'value' => 'Pick the <span class="text-theme">Best Plan</span> For Your Needs',
], ],
[ [
'name' => 'pricing_description', 'name' => 'pricing_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'get_started_title', 'name' => 'get_started_title',
'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?', 'value' => 'Ready to Get <span class="text-theme">Started</span><br> With Us?',
], ],
[ [
'name' => 'get_started_description', 'name' => 'get_started_description',
'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.', 'value' => 'Your private cloud storage software build on Laravel & Vue.js. No limits & no monthly fees. Truly freedom.',
], ],
[ [
'name' => 'footer_content', 'name' => 'footer_content',
'value' => '© 2021 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank" class="text-theme">Hi5Ve.Digital</a>', 'value' => '© 2021 Simple & Powerful Personal Cloud Storage. Developed by <a href="https://hi5ve.digital" target="_blank" class="text-theme">Hi5Ve.Digital</a>',
], ],
[ [
'name' => 'app_color', 'name' => 'app_color',
'value' => '#00BC7E', 'value' => '#00BC7E',
], ],
], ],

View File

@@ -11,23 +11,23 @@ return [
// On boarding // On boarding
'successful_payment_with_password_creation' => 'Dakujeme, platba bola uspesne zaznamenana. V poslednom kroku si prosim vytvorte heslo pre Vas ucet.', 'successful_payment_with_password_creation' => 'Dakujeme, platba bola uspesne zaznamenana. V poslednom kroku si prosim vytvorte heslo pre Vas ucet.',
'pay_order_description' => 'Zaplacenim objednavky se Vas ucet automaticky zaktivuje a vytvori se Vam digitalni prostor pro Vase dulezite dokumenty.', 'pay_order_description' => 'Zaplacenim objednavky se Vas ucet automaticky zaktivuje a vytvori se Vam digitalni prostor pro Vase dulezite dokumenty.',
'payment_page.payment_gateway' => 'Platebni karta', 'payment_page.payment_gateway' => 'Platebni karta',
'payment_page.company' => 'Spolecnost', 'payment_page.company' => 'Spolecnost',
'payment_page.ico' => 'ICO', 'payment_page.ico' => 'ICO',
'payment_page.address' => 'Adresa', 'payment_page.address' => 'Adresa',
// Mail notifications for ordering // Mail notifications for ordering
'mail_greeting' => 'Vážený zákazníku,', 'mail_greeting' => 'Vážený zákazníku,',
'mail_salutation' => 'S pozdravem a přáním hezkého dne, Tým Oasis Drive', 'mail_salutation' => 'S pozdravem a přáním hezkého dne, Tým Oasis Drive',
'mail_tariff' => 'Vámi vybraný tarif: :name - :storage za :price', 'mail_tariff' => 'Vámi vybraný tarif: :name - :storage za :price',
'mail_activation_action' => 'Pro aktivaci klikněte zde', 'mail_activation_action' => 'Pro aktivaci klikněte zde',
'mail_order_subject' => '🏝 Potvrzeni Objednavky - OasisDrive', 'mail_order_subject' => '🏝 Potvrzeni Objednavky - OasisDrive',
'mail_order_line_1' => 'Právě jste si úspěšně vytvořil registraci bezpečnostní datové služby OasisDrive.', 'mail_order_line_1' => 'Právě jste si úspěšně vytvořil registraci bezpečnostní datové služby OasisDrive.',
'mail_order_line_2' => 'Odkaz je platný 24 hodin.', 'mail_order_line_2' => 'Odkaz je platný 24 hodin.',
'mail_order_line_3' => 'Po dokončení registrace v odkazu Vám bude služba automaticky aktivována a lze ji ihned využívat.', 'mail_order_line_3' => 'Po dokončení registrace v odkazu Vám bude služba automaticky aktivována a lze ji ihned využívat.',
'mail_reminder_line_1' => 'Děkujeme za Vaši objednávku služby Oasis Drive pro bezpečné uložení Vašich firemních dokumentů.', 'mail_reminder_line_1' => 'Děkujeme za Vaši objednávku služby Oasis Drive pro bezpečné uložení Vašich firemních dokumentů.',
'mail_reminder_line_2' => 'Připomínáme dokončení aktivace služby a blížící se konec platnosti registračního odkazu:', 'mail_reminder_line_2' => 'Připomínáme dokončení aktivace služby a blížící se konec platnosti registračního odkazu:',
@@ -35,38 +35,38 @@ return [
// Admin // Admin
'oasis.create_order' => 'Vytvorit objednavku', 'oasis.create_order' => 'Vytvorit objednavku',
'oasis.create_user' => 'Vytvorit Uzivatela', 'oasis.create_user' => 'Vytvorit Uzivatela',
// Homepage // Homepage
'navigation.price' => 'Ceník', 'navigation.price' => 'Ceník',
'navigation.about-us' => 'O Nás', 'navigation.about-us' => 'O Nás',
'navigation.contact-and-support' => 'Kontakt a Podpora', 'navigation.contact-and-support' => 'Kontakt a Podpora',
'try_drive' => 'Vyzkouset OasisDrive', 'try_drive' => 'Vyzkouset OasisDrive',
'more_info' => 'Více Informací', 'more_info' => 'Více Informací',
'contact.ico' => 'ICO', 'contact.ico' => 'ICO',
'contact.hq' => 'Sídlo', 'contact.hq' => 'Sídlo',
'homepage_header_title' => 'Jednoduchý a Bezpečný Cloud vo Vrecku', 'homepage_header_title' => 'Jednoduchý a Bezpečný Cloud vo Vrecku',
'homepage_header_description' => 'Virtuální šanon, vždy s tebou.', 'homepage_header_description' => 'Virtuální šanon, vždy s tebou.',
'homepage_feature_title' => 'Proč je OasisDrive Výnimočný?', 'homepage_feature_title' => 'Proč je OasisDrive Výnimočný?',
'homepage_feature_description' => 'Cloudové uložiště je v podstatě virtuální šanon, kam uživatelé ukládají svá data, ke kterým se mohou přihlásit odkudkoli v nezávislosti na zařízení. OasisDrive umožňuje bezpečně chránit Vaše firemní data.', 'homepage_feature_description' => 'Cloudové uložiště je v podstatě virtuální šanon, kam uživatelé ukládají svá data, ke kterým se mohou přihlásit odkudkoli v nezávislosti na zařízení. OasisDrive umožňuje bezpečně chránit Vaše firemní data.',
'feature_1_title' => 'Bezpecnost na prvnim miste', 'feature_1_title' => 'Bezpecnost na prvnim miste',
'feature_1_description' => 'Naše cloudové uložiště umožňuje bezpečně chránit Vaše firemní data. kdy využíváme několik vysoce zabezpečených serverů po Evropské unii a vícenásobným šifrováním souborů (tzv. kryptováním).', 'feature_1_description' => 'Naše cloudové uložiště umožňuje bezpečně chránit Vaše firemní data. kdy využíváme několik vysoce zabezpečených serverů po Evropské unii a vícenásobným šifrováním souborů (tzv. kryptováním).',
'feature_2_title' => 'Bezpečnost v rámci GDPR', 'feature_2_title' => 'Bezpečnost v rámci GDPR',
'feature_2_description' => 'bezpečnost uložení dat v rámci evropské směrnice o GDPR a přidružených zákonů o zpracování a ochraně citlivých údajů. Naši klienti jsou tedy chráněni před zneužitím dat a tím pádem i před pokutami vyplývajícími z legislativy, které být astronomické.', 'feature_2_description' => 'bezpečnost uložení dat v rámci evropské směrnice o GDPR a přidružených zákonů o zpracování a ochraně citlivých údajů. Naši klienti jsou tedy chráněni před zneužitím dat a tím pádem i před pokutami vyplývajícími z legislativy, které být astronomické.',
'feature_3_title' => 'Jednoduchost pouzivani', 'feature_3_title' => 'Jednoduchost pouzivani',
'feature_3_description' => 'Naše cloudové uložiště umožňuje bezpečně chránit Vaše firemní data. kdy využíváme několik vysoce zabezpečených serverů po Evropské unii a vícenásobným šifrováním souborů (tzv. kryptováním).', 'feature_3_description' => 'Naše cloudové uložiště umožňuje bezpečně chránit Vaše firemní data. kdy využíváme několik vysoce zabezpečených serverů po Evropské unii a vícenásobným šifrováním souborů (tzv. kryptováním).',
'homepage_pricing_title' => 'Kolik stoji OasisDrive?', 'homepage_pricing_title' => 'Kolik stoji OasisDrive?',
'homepage_pricing_description' => 'OasisDrive je dostupny v troch variantach. Ak presiahnete limit svojho balicka, mozete si navysit balik dat jednoduchym upgradom uctu.', 'homepage_pricing_description' => 'OasisDrive je dostupny v troch variantach. Ak presiahnete limit svojho balicka, mozete si navysit balik dat jednoduchym upgradom uctu.',
'homepage_about_us_title' => 'Kto Jsme?', 'homepage_about_us_title' => 'Kto Jsme?',
'homepage_about_us_description' => 'Jsme česká společnost, která pro fyzické a právnické osoby (živnostníky a firmy) poskytuje cloudové uložiště dle evropské směrnice (GDPR) a následného zákona o zpracování osobních údajů (zákon 110/2019 sb.).', 'homepage_about_us_description' => 'Jsme česká společnost, která pro fyzické a právnické osoby (živnostníky a firmy) poskytuje cloudové uložiště dle evropské směrnice (GDPR) a následného zákona o zpracování osobních údajů (zákon 110/2019 sb.).',
'homepage_about_us_line_1' => 'Zakládáme si na kvalitě a nejlepší možné bezpečnosti pro uchovávání a zpracování dat a dokumentů.', 'homepage_about_us_line_1' => 'Zakládáme si na kvalitě a nejlepší možné bezpečnosti pro uchovávání a zpracování dat a dokumentů.',
@@ -74,20 +74,20 @@ return [
'homepage_about_us_line_3' => 'Důležitá je pro nás uživatelská jednoduchost, stoprocentní funkčnost a přehlednost.', 'homepage_about_us_line_3' => 'Důležitá je pro nás uživatelská jednoduchost, stoprocentní funkčnost a přehlednost.',
'homepage_about_us_line_4' => 'Bezpečnost uložení dat tak, jak nařizuje směrnice EU (GDPR) a zákon o zpracování osobních údajů.', 'homepage_about_us_line_4' => 'Bezpečnost uložení dat tak, jak nařizuje směrnice EU (GDPR) a zákon o zpracování osobních údajů.',
'homepage_contact_title' => 'Kontakt a Podpora', 'homepage_contact_title' => 'Kontakt a Podpora',
'homepage_contact_description' => 'V pripade akychkolvek otazok nas nevahajte kontaktovat emailom, alebo na ktoromkolvek telefonnom cisle.', 'homepage_contact_description' => 'V pripade akychkolvek otazok nas nevahajte kontaktovat emailom, alebo na ktoromkolvek telefonnom cisle.',
'contact_company_title' => 'Společnost', 'contact_company_title' => 'Společnost',
'contact_support_title' => 'Podpora', 'contact_support_title' => 'Podpora',
'contact_sales_title' => 'Prodej', 'contact_sales_title' => 'Prodej',
'contact_documents_title' => 'Dokumenty', 'contact_documents_title' => 'Dokumenty',
'contact_leave_message_title' => 'Zanechte nám vzkaz', 'contact_leave_message_title' => 'Zanechte nám vzkaz',
'document_gdpr_policy' => 'Směrnice EU (GDPR)', 'document_gdpr_policy' => 'Směrnice EU (GDPR)',
// Invoice module // Invoice module
'in.invoice' => 'Invoice', 'in.invoice' => 'Invoice',
'in_toaster.success_creation' => 'Invoice was created successfully', 'in_toaster.success_creation' => 'Invoice was created successfully',
'in_toaster.success_invoice_edition' => 'The invoice was successfully edited.', 'in_toaster.success_invoice_edition' => 'The invoice was successfully edited.',
'in_toaster.success_client_creation' => 'Client was created successfully', 'in_toaster.success_client_creation' => 'Client was created successfully',
@@ -97,92 +97,92 @@ return [
'in_editor.page.edit_regular_invoice' => 'Edit Regular Invoice', 'in_editor.page.edit_regular_invoice' => 'Edit Regular Invoice',
'in_editor.page.edit_advance_invoice' => 'Edit Advance Invoice', 'in_editor.page.edit_advance_invoice' => 'Edit Advance Invoice',
'in_number' => 'Invoice Number', 'in_number' => 'Invoice Number',
'in_variable' => 'Variable Number', 'in_variable' => 'Variable Number',
'in_delivery_at' => 'Delivery At', 'in_delivery_at' => 'Delivery At',
'in_number_desc' => 'Recommendation based on your latest invoice number {number}', 'in_number_desc' => 'Recommendation based on your latest invoice number {number}',
'in_variable_desc' => 'Recommendation based on your invoice number', 'in_variable_desc' => 'Recommendation based on your invoice number',
'in_editor.properties' => 'Invoice Properties', 'in_editor.properties' => 'Invoice Properties',
'in_editor.client' => 'Client', 'in_editor.client' => 'Client',
'in_editor.items' => 'Items', 'in_editor.items' => 'Items',
'in_editor.discount' => 'Discount', 'in_editor.discount' => 'Discount',
'in_editor.others' => 'Others', 'in_editor.others' => 'Others',
'in_editor.summary' => 'Invoice Summary', 'in_editor.summary' => 'Invoice Summary',
'in_editor.ico' => 'ICO', 'in_editor.ico' => 'ICO',
'in_editor.dic' => 'DIC', 'in_editor.dic' => 'DIC',
'in_editor.ic_dph' => 'IC DPH', 'in_editor.ic_dph' => 'IC DPH',
'in_editor.company_name' => 'Company name', 'in_editor.company_name' => 'Company name',
'in_editor.new_client' => 'Register new client...', 'in_editor.new_client' => 'Register new client...',
'in_editor.client_address' => 'Address', 'in_editor.client_address' => 'Address',
'in_editor.client_city' => 'City', 'in_editor.client_city' => 'City',
'in_editor.client_postal_code' => 'Postal Code', 'in_editor.client_postal_code' => 'Postal Code',
'in_editor.client_country' => 'Country', 'in_editor.client_country' => 'Country',
'in_editor.client_phone' => 'Phone', 'in_editor.client_phone' => 'Phone',
'in_editor.client_email' => 'Email', 'in_editor.client_email' => 'Email',
'in_editor.client_logo' => 'Logo', 'in_editor.client_logo' => 'Logo',
'in_editor.description' => 'Description', 'in_editor.description' => 'Description',
'in_editor.amount' => 'Amount', 'in_editor.amount' => 'Amount',
'in_editor.unit' => 'Unit', 'in_editor.unit' => 'Unit',
'in_editor.tax_rate' => 'Tax Rate', 'in_editor.tax_rate' => 'Tax Rate',
'in_editor.price' => 'Price', 'in_editor.price' => 'Price',
'in_editor.add_item' => 'Add New Item', 'in_editor.add_item' => 'Add New Item',
'in_editor.apply_discount' => 'Apply discount', 'in_editor.apply_discount' => 'Apply discount',
'in_editor.discount_help' => 'You can apply percentage or value discount on your invoice.', 'in_editor.discount_help' => 'You can apply percentage or value discount on your invoice.',
'in_editor.discount_type_percent' => 'Percentage', 'in_editor.discount_type_percent' => 'Percentage',
'in_editor.discount_type_amount' => 'Amount', 'in_editor.discount_type_amount' => 'Amount',
'in_editor.discount_type' => 'Discount Type', 'in_editor.discount_type' => 'Discount Type',
'in_editor.discount_rate' => 'Discount Rate', 'in_editor.discount_rate' => 'Discount Rate',
'in_editor.store_client' => 'Store client for future use', 'in_editor.store_client' => 'Store client for future use',
'in_editor.store_client_notes' => 'Client will be stored to your list and will be ready to reuse again when you create new invoice.', 'in_editor.store_client_notes' => 'Client will be stored to your list and will be ready to reuse again when you create new invoice.',
'in_editor.send' => "Send invoice on client's email", 'in_editor.send' => "Send invoice on client's email",
'in_editor.send_notes' => 'Invoice will be sent to client immediately after invoice generate.', 'in_editor.send_notes' => 'Invoice will be sent to client immediately after invoice generate.',
'in_editor.default_unit' => 'Pcs.', 'in_editor.default_unit' => 'Pcs.',
'in_editor.plac.invoice_number' => 'Type invoice number...', 'in_editor.plac.invoice_number' => 'Type invoice number...',
'in_editor.plac.variable_number' => 'Type variable number...', 'in_editor.plac.variable_number' => 'Type variable number...',
'in_editor.plac.select_client' => 'Create new or select existing client...', 'in_editor.plac.select_client' => 'Create new or select existing client...',
'in_editor.plac.client_ico' => 'Type client ICO...', 'in_editor.plac.client_ico' => 'Type client ICO...',
'in_editor.plac.client_dic' => 'Type client DIC...', 'in_editor.plac.client_dic' => 'Type client DIC...',
'in_editor.plac.client_ic_dph' => 'Type client IC DHP...', 'in_editor.plac.client_ic_dph' => 'Type client IC DHP...',
'in_editor.plac.client_company' => 'Type client company name...', 'in_editor.plac.client_company' => 'Type client company name...',
'in_editor.plac.client_address' => 'Type client address...', 'in_editor.plac.client_address' => 'Type client address...',
'in_editor.plac.client_city' => 'Type client city...', 'in_editor.plac.client_city' => 'Type client city...',
'in_editor.plac.client_postal_code' => 'Type client postal code...', 'in_editor.plac.client_postal_code' => 'Type client postal code...',
'in_editor.plac.client_country' => 'Select client country', 'in_editor.plac.client_country' => 'Select client country',
'in_editor.plac.client_phone' => "Type client's phone number...", 'in_editor.plac.client_phone' => "Type client's phone number...",
'in_editor.plac.client_email' => "Type client's email address...", 'in_editor.plac.client_email' => "Type client's email address...",
'in_editor.plac.item_desc' => 'Type item description...', 'in_editor.plac.item_desc' => 'Type item description...',
'in_editor.plac.item_amount' => 'The amount in Pcs.', 'in_editor.plac.item_amount' => 'The amount in Pcs.',
'in_editor.plac.item_unit' => 'The unit', 'in_editor.plac.item_unit' => 'The unit',
'in_editor.plac.item_tax_rate' => 'Type item tax rate in %...', 'in_editor.plac.item_tax_rate' => 'Type item tax rate in %...',
'in_editor.plac.item_price' => 'Type the item price...', 'in_editor.plac.item_price' => 'Type the item price...',
'in_editor.plac.discount_type' => 'Select discount type', 'in_editor.plac.discount_type' => 'Select discount type',
'in_editor.plac.discount_rate' => 'Type discount rate...', 'in_editor.plac.discount_rate' => 'Type discount rate...',
'in_editor.summary.vat_base' => 'VAT Base', 'in_editor.summary.vat_base' => 'VAT Base',
'in_editor.summary.vat' => 'VAT', 'in_editor.summary.vat' => 'VAT',
'in_editor.summary.total' => 'Total', 'in_editor.summary.total' => 'Total',
'in_editor.submit' => 'Store & Generate Invoice', 'in_editor.submit' => 'Store & Generate Invoice',
'in_editor.error' => 'There is probably an error, please check it and fix it.', 'in_editor.error' => 'There is probably an error, please check it and fix it.',
'inputs.placeholder_search_invoices' => 'Search in invoices...', 'inputs.placeholder_search_invoices' => 'Search in invoices...',
'inputs.placeholder_search_clients' => 'Search in clients...', 'inputs.placeholder_search_clients' => 'Search in clients...',
'in.nav.group.invoicing' => 'Invoicing', 'in.nav.group.invoicing' => 'Invoicing',
'in.nav.group.settings' => 'Settings', 'in.nav.group.settings' => 'Settings',
'in.nav.invoices' => 'Invoices', 'in.nav.invoices' => 'Invoices',
'in.nav.advance_invoices' => 'Advance Invoices', 'in.nav.advance_invoices' => 'Advance Invoices',
'in.nav.clients' => 'Clients', 'in.nav.clients' => 'Clients',
'in.nav.my_bill_profile' => 'My Billing Profile', 'in.nav.my_bill_profile' => 'My Billing Profile',
'in.create.regular_invoice' => 'Create Invoice', 'in.create.regular_invoice' => 'Create Invoice',
'in.create.advance_invoice' => 'Create Advance Invoice', 'in.create.advance_invoice' => 'Create Advance Invoice',
'in.create.client' => 'Create Client', 'in.create.client' => 'Create Client',
'in.button.setup_bill_profile' => 'Set up Billing Profile', 'in.button.setup_bill_profile' => 'Set up Billing Profile',
'in.button.store_bill_profile' => 'Store My Billing Profile', 'in.button.store_bill_profile' => 'Store My Billing Profile',
@@ -191,82 +191,82 @@ return [
'in.bill_profile_note' => 'Here you can set your <b class="text-theme">billing profile</b> which will be paste to your every newly generated invoice.', 'in.bill_profile_note' => 'Here you can set your <b class="text-theme">billing profile</b> which will be paste to your every newly generated invoice.',
'in.empty.bill_profile_title' => "You don't have billing profile", 'in.empty.bill_profile_title' => "You don't have billing profile",
'in.empty.bill_profile_description' => 'Before your first invoice, please set up your billing profile.', 'in.empty.bill_profile_description' => 'Before your first invoice, please set up your billing profile.',
'in.empty.clients_invoices' => "Client doesn't have any invoices yet.", 'in.empty.clients_invoices' => "Client doesn't have any invoices yet.",
'in.empty.invoice_page_title' => 'Create Your First Invoice', 'in.empty.invoice_page_title' => 'Create Your First Invoice',
'in.empty.invoice_page_description' => "It's very easy, just click on the button below.", 'in.empty.invoice_page_description' => "It's very easy, just click on the button below.",
'in.empty.client_page_title' => 'Create Your First Client', 'in.empty.client_page_title' => 'Create Your First Client',
'in.form.some_issues' => 'We found some issues in your form. Please check it out and submit again', 'in.form.some_issues' => 'We found some issues in your form. Please check it out and submit again',
'in.form.create_client' => 'Create Client', 'in.form.create_client' => 'Create Client',
'in.form.delete_invoice' => 'Delete Invoice', 'in.form.delete_invoice' => 'Delete Invoice',
'in.form.stamp' => 'Stamp', 'in.form.stamp' => 'Stamp',
'in.form.author_name' => 'Author Name', 'in.form.author_name' => 'Author Name',
'in.form.swift_code' => 'BIC code/SWIFT', 'in.form.swift_code' => 'BIC code/SWIFT',
'in.form.iban' => 'IBAN', 'in.form.iban' => 'IBAN',
'in.form.bank_name' => 'Bank Name', 'in.form.bank_name' => 'Bank Name',
'in.form.reg_notes' => 'Registration Notes', 'in.form.reg_notes' => 'Registration Notes',
'in.form.company_name' => 'Company name', 'in.form.company_name' => 'Company name',
'in.form.company_and_logo' => 'Company & Logo', 'in.form.company_and_logo' => 'Company & Logo',
'in.form.company_details' => 'Company Details', 'in.form.company_details' => 'Company Details',
'in.form.company_address' => 'Company Address', 'in.form.company_address' => 'Company Address',
'in.form.contact_info' => 'Contact Information', 'in.form.contact_info' => 'Contact Information',
'in.form.bank_info' => 'Bank Info', 'in.form.bank_info' => 'Bank Info',
'in.form.author' => 'Author', 'in.form.author' => 'Author',
'in.menu.edit_invoice' => 'Edit Invoice', 'in.menu.edit_invoice' => 'Edit Invoice',
'in.menu.send_invoice' => 'Send Invoice', 'in.menu.send_invoice' => 'Send Invoice',
'in.menu.show_company' => 'Show Company', 'in.menu.show_company' => 'Show Company',
'in.menu.edit' => 'Edit', 'in.menu.edit' => 'Edit',
'in.menu.delete' => 'Delete', 'in.menu.delete' => 'Delete',
'in.popup.delete_single_invoice.title' => 'Are you sure you want to delete this invoice?', 'in.popup.delete_single_invoice.title' => 'Are you sure you want to delete this invoice?',
'in.popup.delete_single_invoice.message' => 'Your invoice will be permanently deleted.', 'in.popup.delete_single_invoice.message' => 'Your invoice will be permanently deleted.',
'in.popup.delete_invoice.title' => 'Are you sure you want to delete invoice number {number}?', 'in.popup.delete_invoice.title' => 'Are you sure you want to delete invoice number {number}?',
'in.popup.delete_invoice.message' => 'Your invoice will be permanently deleted.', 'in.popup.delete_invoice.message' => 'Your invoice will be permanently deleted.',
'in.popup.delete_client.title' => 'Are you sure you want to delete client {name}?', 'in.popup.delete_client.title' => 'Are you sure you want to delete client {name}?',
'in.popup.delete_client.message' => 'Your client will be permanently deleted.', 'in.popup.delete_client.message' => 'Your client will be permanently deleted.',
'in.total_net' => 'Total Net', 'in.total_net' => 'Total Net',
'in.total_invoices' => 'Total Invoices', 'in.total_invoices' => 'Total Invoices',
'in.n-abbreviation' => 'n.', 'in.n-abbreviation' => 'n.',
'in.doc.taxable_doc' => 'Taxable Document', 'in.doc.taxable_doc' => 'Taxable Document',
'in.doc.advance_doc' => 'Advance Document', 'in.doc.advance_doc' => 'Advance Document',
'in.doc.number' => 'Number', 'in.doc.number' => 'Number',
'in.doc.variable_symbol' => 'Variable symbol', 'in.doc.variable_symbol' => 'Variable symbol',
'in.doc.customer' => 'Customer', 'in.doc.customer' => 'Customer',
'in.doc.supplier' => 'Supplier', 'in.doc.supplier' => 'Supplier',
'in.doc.date_of_issue' => 'Date of issue', 'in.doc.date_of_issue' => 'Date of issue',
'in.doc.date_of_delivery' => 'Date of delivery', 'in.doc.date_of_delivery' => 'Date of delivery',
'in.doc.due_date' => 'Due date', 'in.doc.due_date' => 'Due date',
'in.doc.headquarters' => 'Headquarters', 'in.doc.headquarters' => 'Headquarters',
'in.doc.sum_to_pay' => 'Total to pay', 'in.doc.sum_to_pay' => 'Total to pay',
'in.doc.bank_account_number' => 'Bank Number', 'in.doc.bank_account_number' => 'Bank Number',
'in.doc.item.name' => 'Item', 'in.doc.item.name' => 'Item',
'in.doc.item.amount' => 'Amount', 'in.doc.item.amount' => 'Amount',
'in.doc.item.price_per_unit' => 'Unit Price', 'in.doc.item.price_per_unit' => 'Unit Price',
'in.doc.item.total' => 'Total', 'in.doc.item.total' => 'Total',
'in.doc.item.vat_rate' => 'Vat Rate', 'in.doc.item.vat_rate' => 'Vat Rate',
'in.doc.item.vat' => 'Vat', 'in.doc.item.vat' => 'Vat',
'in.doc.item.total_with_vat' => 'Total with Vat', 'in.doc.item.total_with_vat' => 'Total with Vat',
'in.doc.discount' => 'Discount', 'in.doc.discount' => 'Discount',
'in.doc.vat_base' => 'VAT Base', 'in.doc.vat_base' => 'VAT Base',
'in.doc.thanks' => 'Thank you for choosing our services.', 'in.doc.thanks' => 'Thank you for choosing our services.',
'in.doc.not_vat_payer' => "We aren't VAT payers.", 'in.doc.not_vat_payer' => "We aren't VAT payers.",
'in.doc.creator' => 'Issuer', 'in.doc.creator' => 'Issuer',
@@ -276,22 +276,22 @@ return [
'in.notify.subject' => 'You have new invoice from company :company', 'in.notify.subject' => 'You have new invoice from company :company',
'in.notify.message' => ':company send you invoice. You can find it in attachment of this email.', 'in.notify.message' => ':company send you invoice. You can find it in attachment of this email.',
'in.route_title.invoices' => 'Invoices', 'in.route_title.invoices' => 'Invoices',
'in.route_title.client' => 'Client', 'in.route_title.client' => 'Client',
'in.route_title.client_detail' => 'Client', 'in.route_title.client_detail' => 'Client',
'in.route_title.client_invoices' => 'Client Invoices', 'in.route_title.client_invoices' => 'Client Invoices',
'in.share.share_invoice' => 'Share Your Invoice', 'in.share.share_invoice' => 'Share Your Invoice',
'in.share.type_email' => 'Type email address...', 'in.share.type_email' => 'Type email address...',
'in.share.submit_share' => 'Send Invoice', 'in.share.submit_share' => 'Send Invoice',
'in.share.invoice_sended' => 'Your invoice has been sent successfully', 'in.share.invoice_sended' => 'Your invoice has been sent successfully',
'in.sort_by_net' => 'Sort By Total Net', 'in.sort_by_net' => 'Sort By Total Net',
'in.sort_by_invoice_number' => 'Sort By Invoice Number', 'in.sort_by_invoice_number' => 'Sort By Invoice Number',
'in.button_sorting' => 'Sorting', 'in.button_sorting' => 'Sorting',
'in.billing_info' => 'Billing Information', 'in.billing_info' => 'Billing Information',
'in.doc.revers_charge' => 'Revers Charge', 'in.doc.revers_charge' => 'Revers Charge',
'in.doc.tax_transfer_liability' => 'Transfer of tax liability', 'in.doc.tax_transfer_liability' => 'Transfer of tax liability',
]; ];

View File

@@ -34,29 +34,29 @@ return [
'connections' => [ 'connections' => [
'sqlite' => [ 'sqlite' => [
'driver' => 'sqlite', 'driver' => 'sqlite',
'url' => env('DATABASE_URL'), 'url' => env('DATABASE_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')), 'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '', 'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
], ],
'mysql' => [ 'mysql' => [
'driver' => 'mysql', 'driver' => 'mysql',
'url' => env('DATABASE_URL'), 'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'), 'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'), 'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'), 'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'), 'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''), 'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4', 'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci', 'collation' => 'utf8mb4_unicode_ci',
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'strict' => true, 'strict' => true,
'engine' => null, 'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([ 'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [], ]) : [],
'dump' => [ 'dump' => [
@@ -67,30 +67,30 @@ return [
], ],
'pgsql' => [ 'pgsql' => [
'driver' => 'pgsql', 'driver' => 'pgsql',
'url' => env('DATABASE_URL'), 'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'), 'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'), 'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'), 'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'), 'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8', 'charset' => 'utf8',
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
'schema' => 'public', 'schema' => 'public',
'sslmode' => 'prefer', 'sslmode' => 'prefer',
], ],
'sqlsrv' => [ 'sqlsrv' => [
'driver' => 'sqlsrv', 'driver' => 'sqlsrv',
'url' => env('DATABASE_URL'), 'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', 'localhost'), 'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'), 'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'), 'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'), 'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''), 'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8', 'charset' => 'utf8',
'prefix' => '', 'prefix' => '',
'prefix_indexes' => true, 'prefix_indexes' => true,
], ],
], ],
@@ -124,22 +124,22 @@ return [
'options' => [ 'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'), 'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
], ],
'default' => [ 'default' => [
'url' => env('REDIS_URL'), 'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null), 'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'), 'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'), 'database' => env('REDIS_DB', '0'),
], ],
'cache' => [ 'cache' => [
'url' => env('REDIS_URL'), 'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'), 'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null), 'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', '6379'), 'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'), 'database' => env('REDIS_CACHE_DB', '1'),
], ],
], ],

View File

@@ -43,50 +43,50 @@ return [
'disks' => [ 'disks' => [
'local' => [ 'local' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app'), 'root' => storage_path('app'),
], ],
'public' => [ 'public' => [
'driver' => 'local', 'driver' => 'local',
'root' => storage_path('app/public'), 'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage', 'url' => env('APP_URL').'/storage',
'visibility' => 'public', 'visibility' => 'public',
], ],
's3' => [ 's3' => [
'driver' => 's3', 'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'), 'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'), 'bucket' => env('AWS_BUCKET'),
'endpoint' => env('AWS_URL'), 'endpoint' => env('AWS_URL'),
], ],
'spaces' => [ 'spaces' => [
'driver' => 's3', 'driver' => 's3',
'key' => env('DO_SPACES_KEY'), 'key' => env('DO_SPACES_KEY'),
'secret' => env('DO_SPACES_SECRET'), 'secret' => env('DO_SPACES_SECRET'),
'endpoint' => env('DO_SPACES_ENDPOINT'), 'endpoint' => env('DO_SPACES_ENDPOINT'),
'region' => env('DO_SPACES_REGION'), 'region' => env('DO_SPACES_REGION'),
'bucket' => env('DO_SPACES_BUCKET'), 'bucket' => env('DO_SPACES_BUCKET'),
], ],
'wasabi' => [ 'wasabi' => [
'driver' => 's3', 'driver' => 's3',
'key' => env('WASABI_KEY'), 'key' => env('WASABI_KEY'),
'secret' => env('WASABI_SECRET'), 'secret' => env('WASABI_SECRET'),
'endpoint' => env('WASABI_ENDPOINT'), 'endpoint' => env('WASABI_ENDPOINT'),
'region' => env('WASABI_REGION'), 'region' => env('WASABI_REGION'),
'bucket' => env('WASABI_BUCKET'), 'bucket' => env('WASABI_BUCKET'),
], ],
'backblaze' => [ 'backblaze' => [
'driver' => 's3', 'driver' => 's3',
'key' => env('BACKBLAZE_KEY'), 'key' => env('BACKBLAZE_KEY'),
'secret' => env('BACKBLAZE_SECRET'), 'secret' => env('BACKBLAZE_SECRET'),
'endpoint' => env('BACKBLAZE_ENDPOINT'), 'endpoint' => env('BACKBLAZE_ENDPOINT'),
'region' => env('BACKBLAZE_REGION'), 'region' => env('BACKBLAZE_REGION'),
'bucket' => env('BACKBLAZE_BUCKET'), 'bucket' => env('BACKBLAZE_BUCKET'),
], ],
], ],
]; ];

View File

@@ -102,7 +102,7 @@ return [
*/ */
'limiters' => [ 'limiters' => [
'login' => 'login', 'login' => 'login',
'two-factor' => 'two-factor', 'two-factor' => 'two-factor',
], ],

View File

@@ -43,8 +43,8 @@ return [
*/ */
'argon' => [ 'argon' => [
'memory' => 1024, 'memory' => 1024,
'threads' => 2, 'threads' => 2,
'time' => 2, 'time' => 2,
], ],
]; ];

File diff suppressed because it is too large Load Diff

View File

@@ -2,6 +2,6 @@
return [ return [
'enable' => env('LARAVEL_QUERY_MONITOR', true), 'enable' => env('LARAVEL_QUERY_MONITOR', true),
'host' => env('LARAVEL_QUERY_MONITOR_HOST', '0.0.0.0'), 'host' => env('LARAVEL_QUERY_MONITOR_HOST', '0.0.0.0'),
'port' => env('LARAVEL_QUERY_MONITOR_PORT', 8081), 'port' => env('LARAVEL_QUERY_MONITOR_PORT', 8081),
]; ];

View File

@@ -35,36 +35,36 @@ return [
'channels' => [ 'channels' => [
'stack' => [ 'stack' => [
'driver' => 'stack', 'driver' => 'stack',
'channels' => ['single'], 'channels' => ['single'],
'ignore_exceptions' => false, 'ignore_exceptions' => false,
], ],
'single' => [ 'single' => [
'driver' => 'single', 'driver' => 'single',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/laravel.log'),
'level' => 'debug', 'level' => 'debug',
], ],
'daily' => [ 'daily' => [
'driver' => 'daily', 'driver' => 'daily',
'path' => storage_path('logs/laravel.log'), 'path' => storage_path('logs/laravel.log'),
'level' => 'debug', 'level' => 'debug',
'days' => 14, 'days' => 14,
], ],
'slack' => [ 'slack' => [
'driver' => 'slack', 'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'), 'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => 'Laravel Log', 'username' => 'Laravel Log',
'emoji' => ':boom:', 'emoji' => ':boom:',
'level' => 'critical', 'level' => 'critical',
], ],
'papertrail' => [ 'papertrail' => [
'driver' => 'monolog', 'driver' => 'monolog',
'level' => 'debug', 'level' => 'debug',
'handler' => SyslogUdpHandler::class, 'handler' => SyslogUdpHandler::class,
'handler_with' => [ 'handler_with' => [
'host' => env('PAPERTRAIL_URL'), 'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'), 'port' => env('PAPERTRAIL_PORT'),
@@ -72,26 +72,26 @@ return [
], ],
'stderr' => [ 'stderr' => [
'driver' => 'monolog', 'driver' => 'monolog',
'handler' => StreamHandler::class, 'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'), 'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [ 'with' => [
'stream' => 'php://stderr', 'stream' => 'php://stderr',
], ],
], ],
'syslog' => [ 'syslog' => [
'driver' => 'syslog', 'driver' => 'syslog',
'level' => 'debug', 'level' => 'debug',
], ],
'errorlog' => [ 'errorlog' => [
'driver' => 'errorlog', 'driver' => 'errorlog',
'level' => 'debug', 'level' => 'debug',
], ],
'null' => [ 'null' => [
'driver' => 'monolog', 'driver' => 'monolog',
'handler' => NullHandler::class, 'handler' => NullHandler::class,
], ],

View File

@@ -56,7 +56,7 @@ return [
'from' => [ 'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'), 'name' => env('MAIL_FROM_NAME', 'Example'),
], ],
/* /*

View File

@@ -33,35 +33,35 @@ return [
], ],
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'table' => 'jobs', 'table' => 'jobs',
'queue' => 'default', 'queue' => 'default',
'retry_after' => 90, 'retry_after' => 90,
], ],
'beanstalkd' => [ 'beanstalkd' => [
'driver' => 'beanstalkd', 'driver' => 'beanstalkd',
'host' => 'localhost', 'host' => 'localhost',
'queue' => 'default', 'queue' => 'default',
'retry_after' => 90, 'retry_after' => 90,
'block_for' => 0, 'block_for' => 0,
], ],
'sqs' => [ 'sqs' => [
'driver' => 'sqs', 'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'your-queue-name'), 'queue' => env('SQS_QUEUE', 'your-queue-name'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => 'default', 'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'), 'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90, 'retry_after' => 90,
'block_for' => null, 'block_for' => null,
], ],
], ],
@@ -77,8 +77,8 @@ return [
*/ */
'failed' => [ 'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database'), 'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
'database' => env('DB_CONNECTION', 'mysql'), 'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs', 'table' => 'failed_jobs',
], ],
]; ];

View File

@@ -54,7 +54,7 @@ return [
*/ */
'chunk' => [ 'chunk' => [
'searchable' => 500, 'searchable' => 500,
'unsearchable' => 500, 'unsearchable' => 500,
], ],
@@ -83,19 +83,19 @@ return [
*/ */
'algolia' => [ 'algolia' => [
'id' => env('ALGOLIA_APP_ID', ''), 'id' => env('ALGOLIA_APP_ID', ''),
'secret' => env('ALGOLIA_SECRET', ''), 'secret' => env('ALGOLIA_SECRET', ''),
], ],
'tntsearch' => [ 'tntsearch' => [
'storage' => storage_path(), //place where the index files will be stored 'storage' => storage_path(), //place where the index files will be stored
'fuzziness' => env('TNTSEARCH_FUZZINESS', true), 'fuzziness' => env('TNTSEARCH_FUZZINESS', true),
'fuzzy' => [ 'fuzzy' => [
'prefix_length' => 2, 'prefix_length' => 2,
'max_expansions' => 500, 'max_expansions' => 500,
'distance' => 3, 'distance' => 3,
], ],
'asYouType' => true, 'asYouType' => true,
'searchBoolean' => env('TNTSEARCH_BOOLEAN', true), 'searchBoolean' => env('TNTSEARCH_BOOLEAN', true),
], ],
]; ];

View File

@@ -14,8 +14,8 @@ return [
*/ */
'mailgun' => [ 'mailgun' => [
'domain' => env('MAILGUN_DOMAIN'), 'domain' => env('MAILGUN_DOMAIN'),
'secret' => env('MAILGUN_SECRET'), 'secret' => env('MAILGUN_SECRET'),
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
], ],
@@ -24,13 +24,13 @@ return [
], ],
'ses' => [ 'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'), 'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'), 'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
], ],
'passport' => [ 'passport' => [
'client_id' => env('PASSPORT_CLIENT_ID'), 'client_id' => env('PASSPORT_CLIENT_ID'),
'client_secret' => env('PASSPORT_CLIENT_SECRET'), 'client_secret' => env('PASSPORT_CLIENT_SECRET'),
], ],
]; ];

View File

@@ -34,20 +34,20 @@ return [
'pdf' => [ 'pdf' => [
'enabled' => true, 'enabled' => true,
'binary' => env('WKHTML_PDF_BINARY', '/usr/local/bin/wkhtmltopdf'), 'binary' => env('WKHTML_PDF_BINARY', '/usr/local/bin/wkhtmltopdf'),
'timeout' => false, 'timeout' => false,
'options' => [ 'options' => [
'enable-local-file-access' => true, 'enable-local-file-access' => true,
'encoding' => 'UTF-8', 'encoding' => 'UTF-8',
], ],
'env' => [], 'env' => [],
], ],
'image' => [ 'image' => [
'enabled' => true, 'enabled' => true,
'binary' => env('WKHTML_IMG_BINARY', '/usr/local/bin/wkhtmltoimage'), 'binary' => env('WKHTML_IMG_BINARY', '/usr/local/bin/wkhtmltoimage'),
'timeout' => false, 'timeout' => false,
'options' => [], 'options' => [],
'env' => [], 'env' => [],
], ],
]; ];