diff --git a/app/Helpers/Cetak.php b/app/Helpers/Cetak.php
index 1f0542d5..8b6bb46b 100644
--- a/app/Helpers/Cetak.php
+++ b/app/Helpers/Cetak.php
@@ -20,18 +20,18 @@ class Cetak
public static function cetak($jenis, $models)
{
$index = 0;
- $mainXml ='';
+ $mainXml = '';
foreach ($models as $model) {
- if ($index === 0) {
- $mainTemplate = self::getTemplate($jenis, $model->id);
- $mainXml = self::getMainXml($mainTemplate);
- $data = call_user_func('App\Helpers\Cetak::'.$jenis, $model->id);
- } else {
- $innerTemplate = self::getTemplate($jenis, $model->id);
- $innerXml = self::getModifiedInnerXml($innerTemplate);
- $mainXml = preg_replace('/<\/w:body>/', '' . $innerXml . '', $mainXml);
- }
- $index++;
+ if ($index === 0) {
+ $mainTemplate = self::getTemplate($jenis, $model->id);
+ $mainXml = self::getMainXml($mainTemplate);
+ $data = call_user_func('App\Helpers\Cetak::'.$jenis, $model->id);
+ } else {
+ $innerTemplate = self::getTemplate($jenis, $model->id);
+ $innerXml = self::getModifiedInnerXml($innerTemplate);
+ $mainXml = preg_replace('/<\/w:body>/', ''.$innerXml.'', $mainXml);
+ }
+ $index++;
}
$mainTemplate->settempDocumentMainPart($mainXml);
($index === 1) ? $filename = $jenis.'_'.session('year').'_'.explode('/', $data['nomor'])[0].'.docx' : $filename = uniqid().'.docx';
@@ -57,6 +57,7 @@ public static function getTemplate($jenis, $id)
unset($data['anggaran'], $data['spesifikasi']);
}
$templateProcessor->setValues($data);
+
return $templateProcessor;
}
@@ -67,7 +68,7 @@ public static function getTemplate($jenis, $id)
* @return string
*/
public static function getMainXml($templateProcessor)
- {
+ {
return $templateProcessor->gettempDocumentMainPart();
}
@@ -78,10 +79,11 @@ public static function getMainXml($templateProcessor)
* @return string
*/
public static function getModifiedInnerXml($templateProcessor)
- {
+ {
$innerXml = $templateProcessor->gettempDocumentMainPart();
$innerXml = preg_replace('/^[\s\S]*(.*)<\/w:body>.*/', '$1', $innerXml);
$innerXml = preg_replace('/.*<\/w:sectPr>/', '', $innerXml);
+
return $innerXml;
}
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php
index 67210ab5..7cb0e390 100644
--- a/app/Helpers/Helper.php
+++ b/app/Helpers/Helper.php
@@ -6,7 +6,6 @@
use App\Models\JenisKontrak;
use App\Models\JenisNaskah;
use App\Models\KamusAnggaran;
-use App\Models\KerangkaAcuan;
use App\Models\KodeArsip;
use App\Models\KodeNaskah;
use App\Models\NaskahKeluar;
@@ -15,7 +14,6 @@
use App\Models\UnitKerja;
use App\Models\User;
use Illuminate\Support\Carbon;
-use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
@@ -781,5 +779,4 @@ public static function hapusTitikAkhirKalimat($kalimat)
{
return rtrim($kalimat, '.');
}
-
}
diff --git a/app/Http/Controllers/DumpDownloadController.php b/app/Http/Controllers/DumpDownloadController.php
index c6240eb8..e819c1de 100644
--- a/app/Http/Controllers/DumpDownloadController.php
+++ b/app/Http/Controllers/DumpDownloadController.php
@@ -7,9 +7,10 @@
class DumpDownloadController extends Controller
{
- public function show( $filename, Request $request )
+ public function show($filename, Request $request)
{
$path = Storage::path('public/'.$filename);
- return response()->download( $path, $filename )->deleteFileAfterSend(true);
+
+ return response()->download($path, $filename)->deleteFileAfterSend(true);
}
}
diff --git a/app/Nova/Actions/Download.php b/app/Nova/Actions/Download.php
index 9e2784a2..cf8ba905 100644
--- a/app/Nova/Actions/Download.php
+++ b/app/Nova/Actions/Download.php
@@ -3,13 +3,10 @@
namespace App\Nova\Actions;
use App\Helpers\Cetak;
-use App\Helpers\TemplateProcessor;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
-use Illuminate\Support\Facades\Storage;
use Laravel\Nova\Actions\Action;
-use Laravel\Nova\Actions\ActionResponse;
use Laravel\Nova\Fields\ActionFields;
use Laravel\Nova\Http\Requests\NovaRequest;
@@ -42,10 +39,9 @@ public function handle(ActionFields $fields, Collection $models)
{
$filename = Cetak::cetak($this->jenis, $models);
- return Action::redirect( route('dump-download', [
- 'filename' => $filename, 'jenis'=>$this->jenis
- ] ) );
-
+ return Action::redirect(route('dump-download', [
+ 'filename' => $filename, 'jenis' => $this->jenis,
+ ]));
}
/**
diff --git a/lang/en/auth.php b/lang/en/auth.php
index 6db4982c..4337d090 100644
--- a/lang/en/auth.php
+++ b/lang/en/auth.php
@@ -3,7 +3,7 @@
declare(strict_types=1);
return [
- 'failed' => 'These credentials do not match our records.',
+ 'failed' => 'These credentials do not match our records.',
'password' => 'The password is incorrect.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];
diff --git a/lang/en/pagination.php b/lang/en/pagination.php
index f4ceddec..c4937125 100644
--- a/lang/en/pagination.php
+++ b/lang/en/pagination.php
@@ -3,6 +3,6 @@
declare(strict_types=1);
return [
- 'next' => 'Next »',
+ 'next' => 'Next »',
'previous' => '« Previous',
];
diff --git a/lang/en/passwords.php b/lang/en/passwords.php
index f3b65bab..1130b8d4 100644
--- a/lang/en/passwords.php
+++ b/lang/en/passwords.php
@@ -3,9 +3,9 @@
declare(strict_types=1);
return [
- 'reset' => 'Your password has been reset.',
- 'sent' => 'We have emailed your password reset link.',
+ 'reset' => 'Your password has been reset.',
+ 'sent' => 'We have emailed your password reset link.',
'throttled' => 'Please wait before retrying.',
- 'token' => 'This password reset token is invalid.',
- 'user' => 'We can\'t find a user with that email address.',
+ 'token' => 'This password reset token is invalid.',
+ 'user' => 'We can\'t find a user with that email address.',
];
diff --git a/lang/en/validation.php b/lang/en/validation.php
index 1f3a5aba..799d4624 100644
--- a/lang/en/validation.php
+++ b/lang/en/validation.php
@@ -3,151 +3,151 @@
declare(strict_types=1);
return [
- 'accepted' => 'The :attribute must be accepted.',
- 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
- 'active_url' => 'The :attribute is not a valid URL.',
- 'after' => 'The :attribute must be a date after :date.',
- 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
- 'alpha' => 'The :attribute must only contain letters.',
- 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
- 'alpha_num' => 'The :attribute must only contain letters and numbers.',
- 'array' => 'The :attribute must be an array.',
- 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
- 'before' => 'The :attribute must be a date before :date.',
- 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
- 'between' => [
- 'array' => 'The :attribute must have between :min and :max items.',
- 'file' => 'The :attribute must be between :min and :max kilobytes.',
+ 'accepted' => 'The :attribute must be accepted.',
+ 'accepted_if' => 'The :attribute must be accepted when :other is :value.',
+ 'active_url' => 'The :attribute is not a valid URL.',
+ 'after' => 'The :attribute must be a date after :date.',
+ 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
+ 'alpha' => 'The :attribute must only contain letters.',
+ 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.',
+ 'alpha_num' => 'The :attribute must only contain letters and numbers.',
+ 'array' => 'The :attribute must be an array.',
+ 'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
+ 'before' => 'The :attribute must be a date before :date.',
+ 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
+ 'between' => [
+ 'array' => 'The :attribute must have between :min and :max items.',
+ 'file' => 'The :attribute must be between :min and :max kilobytes.',
'numeric' => 'The :attribute must be between :min and :max.',
- 'string' => 'The :attribute must be between :min and :max characters.',
+ 'string' => 'The :attribute must be between :min and :max characters.',
],
- 'boolean' => 'The :attribute field must be true or false.',
- 'can' => 'The :attribute field contains an unauthorized value.',
- 'confirmed' => 'The :attribute confirmation does not match.',
- 'contains' => 'The :attribute field is missing a required value.',
- 'current_password' => 'The password is incorrect.',
- 'date' => 'The :attribute is not a valid date.',
- 'date_equals' => 'The :attribute must be a date equal to :date.',
- 'date_format' => 'The :attribute does not match the format :format.',
- 'decimal' => 'The :attribute field must have :decimal decimal places.',
- 'declined' => 'The :attribute must be declined.',
- 'declined_if' => 'The :attribute must be declined when :other is :value.',
- 'different' => 'The :attribute and :other must be different.',
- 'digits' => 'The :attribute must be :digits digits.',
- 'digits_between' => 'The :attribute must be between :min and :max digits.',
- 'dimensions' => 'The :attribute has invalid image dimensions.',
- 'distinct' => 'The :attribute field has a duplicate value.',
- 'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
- 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
- 'email' => 'The :attribute must be a valid email address.',
- 'ends_with' => 'The :attribute must end with one of the following: :values.',
- 'enum' => 'The :attribute field value is not in the list of allowed values.',
- 'exists' => 'The :attribute field value does not exist.',
- 'extensions' => 'The :attribute field must have one of the following extensions: :values.',
- 'file' => 'The :attribute must be a file.',
- 'filled' => 'The :attribute field must have a value.',
- 'gt' => [
- 'array' => 'The :attribute must have more than :value items.',
- 'file' => 'The :attribute must be greater than :value kilobytes.',
+ 'boolean' => 'The :attribute field must be true or false.',
+ 'can' => 'The :attribute field contains an unauthorized value.',
+ 'confirmed' => 'The :attribute confirmation does not match.',
+ 'contains' => 'The :attribute field is missing a required value.',
+ 'current_password' => 'The password is incorrect.',
+ 'date' => 'The :attribute is not a valid date.',
+ 'date_equals' => 'The :attribute must be a date equal to :date.',
+ 'date_format' => 'The :attribute does not match the format :format.',
+ 'decimal' => 'The :attribute field must have :decimal decimal places.',
+ 'declined' => 'The :attribute must be declined.',
+ 'declined_if' => 'The :attribute must be declined when :other is :value.',
+ 'different' => 'The :attribute and :other must be different.',
+ 'digits' => 'The :attribute must be :digits digits.',
+ 'digits_between' => 'The :attribute must be between :min and :max digits.',
+ 'dimensions' => 'The :attribute has invalid image dimensions.',
+ 'distinct' => 'The :attribute field has a duplicate value.',
+ 'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
+ 'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
+ 'email' => 'The :attribute must be a valid email address.',
+ 'ends_with' => 'The :attribute must end with one of the following: :values.',
+ 'enum' => 'The :attribute field value is not in the list of allowed values.',
+ 'exists' => 'The :attribute field value does not exist.',
+ 'extensions' => 'The :attribute field must have one of the following extensions: :values.',
+ 'file' => 'The :attribute must be a file.',
+ 'filled' => 'The :attribute field must have a value.',
+ 'gt' => [
+ 'array' => 'The :attribute must have more than :value items.',
+ 'file' => 'The :attribute must be greater than :value kilobytes.',
'numeric' => 'The :attribute must be greater than :value.',
- 'string' => 'The :attribute must be greater than :value characters.',
+ 'string' => 'The :attribute must be greater than :value characters.',
],
- 'gte' => [
- 'array' => 'The :attribute must have :value items or more.',
- 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
+ 'gte' => [
+ 'array' => 'The :attribute must have :value items or more.',
+ 'file' => 'The :attribute must be greater than or equal to :value kilobytes.',
'numeric' => 'The :attribute must be greater than or equal to :value.',
- 'string' => 'The :attribute must be greater than or equal to :value characters.',
+ 'string' => 'The :attribute must be greater than or equal to :value characters.',
],
- 'hex_color' => 'The :attribute field must be a valid hexadecimal color.',
- 'image' => 'The :attribute must be an image.',
- 'in' => 'The :attribute field value is not in the list of allowed values.',
- 'in_array' => 'The :attribute field does not exist in :other.',
- 'integer' => 'The :attribute must be an integer.',
- 'ip' => 'The :attribute must be a valid IP address.',
- 'ipv4' => 'The :attribute must be a valid IPv4 address.',
- 'ipv6' => 'The :attribute must be a valid IPv6 address.',
- 'json' => 'The :attribute must be a valid JSON string.',
- 'list' => 'The :attribute field must be a list.',
- 'lowercase' => 'The :attribute field must be lowercase.',
- 'lt' => [
- 'array' => 'The :attribute must have less than :value items.',
- 'file' => 'The :attribute must be less than :value kilobytes.',
+ 'hex_color' => 'The :attribute field must be a valid hexadecimal color.',
+ 'image' => 'The :attribute must be an image.',
+ 'in' => 'The :attribute field value is not in the list of allowed values.',
+ 'in_array' => 'The :attribute field does not exist in :other.',
+ 'integer' => 'The :attribute must be an integer.',
+ 'ip' => 'The :attribute must be a valid IP address.',
+ 'ipv4' => 'The :attribute must be a valid IPv4 address.',
+ 'ipv6' => 'The :attribute must be a valid IPv6 address.',
+ 'json' => 'The :attribute must be a valid JSON string.',
+ 'list' => 'The :attribute field must be a list.',
+ 'lowercase' => 'The :attribute field must be lowercase.',
+ 'lt' => [
+ 'array' => 'The :attribute must have less than :value items.',
+ 'file' => 'The :attribute must be less than :value kilobytes.',
'numeric' => 'The :attribute must be less than :value.',
- 'string' => 'The :attribute must be less than :value characters.',
+ 'string' => 'The :attribute must be less than :value characters.',
],
- 'lte' => [
- 'array' => 'The :attribute must not have more than :value items.',
- 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
+ 'lte' => [
+ 'array' => 'The :attribute must not have more than :value items.',
+ 'file' => 'The :attribute must be less than or equal to :value kilobytes.',
'numeric' => 'The :attribute must be less than or equal to :value.',
- 'string' => 'The :attribute must be less than or equal to :value characters.',
+ 'string' => 'The :attribute must be less than or equal to :value characters.',
],
- 'mac_address' => 'The :attribute must be a valid MAC address.',
- 'max' => [
- 'array' => 'The :attribute must not have more than :max items.',
- 'file' => 'The :attribute must not be greater than :max kilobytes.',
+ 'mac_address' => 'The :attribute must be a valid MAC address.',
+ 'max' => [
+ 'array' => 'The :attribute must not have more than :max items.',
+ 'file' => 'The :attribute must not be greater than :max kilobytes.',
'numeric' => 'The :attribute must not be greater than :max.',
- 'string' => 'The :attribute must not be greater than :max characters.',
+ 'string' => 'The :attribute must not be greater than :max characters.',
],
- 'max_digits' => 'The :attribute field must not have more than :max digits.',
- 'mimes' => 'The :attribute must be a file of type: :values.',
- 'mimetypes' => 'The :attribute must be a file of type: :values.',
- 'min' => [
- 'array' => 'The :attribute must have at least :min items.',
- 'file' => 'The :attribute must be at least :min kilobytes.',
+ 'max_digits' => 'The :attribute field must not have more than :max digits.',
+ 'mimes' => 'The :attribute must be a file of type: :values.',
+ 'mimetypes' => 'The :attribute must be a file of type: :values.',
+ 'min' => [
+ 'array' => 'The :attribute must have at least :min items.',
+ 'file' => 'The :attribute must be at least :min kilobytes.',
'numeric' => 'The :attribute must be at least :min.',
- 'string' => 'The :attribute must be at least :min characters.',
+ 'string' => 'The :attribute must be at least :min characters.',
],
- 'min_digits' => 'The :attribute field must have at least :min digits.',
- 'missing' => 'The :attribute field must be missing.',
- 'missing_if' => 'The :attribute field must be missing when :other is :value.',
- 'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
- 'missing_with' => 'The :attribute field must be missing when :values is present.',
- 'missing_with_all' => 'The :attribute field must be missing when :values are present.',
- 'multiple_of' => 'The :attribute must be a multiple of :value.',
- 'not_in' => 'The :attribute field must not be in the list.',
- 'not_regex' => 'The :attribute format is invalid.',
- 'numeric' => 'The :attribute must be a number.',
- 'password' => [
- 'letters' => 'The :attribute field must contain at least one letter.',
- 'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
- 'numbers' => 'The :attribute field must contain at least one number.',
- 'symbols' => 'The :attribute field must contain at least one symbol.',
+ 'min_digits' => 'The :attribute field must have at least :min digits.',
+ 'missing' => 'The :attribute field must be missing.',
+ 'missing_if' => 'The :attribute field must be missing when :other is :value.',
+ 'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
+ 'missing_with' => 'The :attribute field must be missing when :values is present.',
+ 'missing_with_all' => 'The :attribute field must be missing when :values are present.',
+ 'multiple_of' => 'The :attribute must be a multiple of :value.',
+ 'not_in' => 'The :attribute field must not be in the list.',
+ 'not_regex' => 'The :attribute format is invalid.',
+ 'numeric' => 'The :attribute must be a number.',
+ 'password' => [
+ 'letters' => 'The :attribute field must contain at least one letter.',
+ 'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
+ 'numbers' => 'The :attribute field must contain at least one number.',
+ 'symbols' => 'The :attribute field must contain at least one symbol.',
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
],
- 'present' => 'The :attribute field must be present.',
- 'present_if' => 'The :attribute field must be present when :other is :value.',
- 'present_unless' => 'The :attribute field must be present unless :other is :value.',
- 'present_with' => 'The :attribute field must be present when :values is present.',
- 'present_with_all' => 'The :attribute field must be present when :values are present.',
- 'prohibited' => 'The :attribute field is prohibited.',
- 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
- 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
- 'prohibits' => 'The :attribute field prohibits :other from being present.',
- 'regex' => 'The :attribute format is invalid.',
- 'required' => 'The :attribute field is required.',
- 'required_array_keys' => 'The :attribute field must contain entries for: :values.',
- 'required_if' => 'The :attribute field is required when :other is :value.',
+ 'present' => 'The :attribute field must be present.',
+ 'present_if' => 'The :attribute field must be present when :other is :value.',
+ 'present_unless' => 'The :attribute field must be present unless :other is :value.',
+ 'present_with' => 'The :attribute field must be present when :values is present.',
+ 'present_with_all' => 'The :attribute field must be present when :values are present.',
+ 'prohibited' => 'The :attribute field is prohibited.',
+ 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
+ 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
+ 'prohibits' => 'The :attribute field prohibits :other from being present.',
+ 'regex' => 'The :attribute format is invalid.',
+ 'required' => 'The :attribute field is required.',
+ 'required_array_keys' => 'The :attribute field must contain entries for: :values.',
+ 'required_if' => 'The :attribute field is required when :other is :value.',
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
'required_if_declined' => 'The :attribute field is required when :other is declined.',
- 'required_unless' => 'The :attribute field is required unless :other is in :values.',
- 'required_with' => 'The :attribute field is required when :values is present.',
- 'required_with_all' => 'The :attribute field is required when :values are present.',
- 'required_without' => 'The :attribute field is required when :values is not present.',
+ 'required_unless' => 'The :attribute field is required unless :other is in :values.',
+ 'required_with' => 'The :attribute field is required when :values is present.',
+ 'required_with_all' => 'The :attribute field is required when :values are present.',
+ 'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
- 'same' => 'The :attribute and :other must match.',
- 'size' => [
- 'array' => 'The :attribute must contain :size items.',
- 'file' => 'The :attribute must be :size kilobytes.',
+ 'same' => 'The :attribute and :other must match.',
+ 'size' => [
+ 'array' => 'The :attribute must contain :size items.',
+ 'file' => 'The :attribute must be :size kilobytes.',
'numeric' => 'The :attribute must be :size.',
- 'string' => 'The :attribute must be :size characters.',
+ 'string' => 'The :attribute must be :size characters.',
],
- 'starts_with' => 'The :attribute must start with one of the following: :values.',
- 'string' => 'The :attribute must be a string.',
- 'timezone' => 'The :attribute must be a valid timezone.',
- 'ulid' => 'The :attribute field must be a valid ULID.',
- 'unique' => 'The :attribute has already been taken.',
- 'uploaded' => 'The :attribute failed to upload.',
- 'uppercase' => 'The :attribute field must be uppercase.',
- 'url' => 'The :attribute must be a valid URL.',
- 'uuid' => 'The :attribute must be a valid UUID.',
+ 'starts_with' => 'The :attribute must start with one of the following: :values.',
+ 'string' => 'The :attribute must be a string.',
+ 'timezone' => 'The :attribute must be a valid timezone.',
+ 'ulid' => 'The :attribute field must be a valid ULID.',
+ 'unique' => 'The :attribute has already been taken.',
+ 'uploaded' => 'The :attribute failed to upload.',
+ 'uppercase' => 'The :attribute field must be uppercase.',
+ 'url' => 'The :attribute must be a valid URL.',
+ 'uuid' => 'The :attribute must be a valid UUID.',
];
diff --git a/lang/id/auth.php b/lang/id/auth.php
index 030b6b71..38931c73 100644
--- a/lang/id/auth.php
+++ b/lang/id/auth.php
@@ -3,7 +3,7 @@
declare(strict_types=1);
return [
- 'failed' => 'Identitas tersebut tidak cocok dengan data kami.',
+ 'failed' => 'Identitas tersebut tidak cocok dengan data kami.',
'password' => 'Kata sandi salah.',
'throttle' => 'Terlalu banyak upaya masuk. Silahkan coba lagi dalam :seconds detik.',
];
diff --git a/lang/id/pagination.php b/lang/id/pagination.php
index 708a9f01..cedd79c8 100644
--- a/lang/id/pagination.php
+++ b/lang/id/pagination.php
@@ -3,6 +3,6 @@
declare(strict_types=1);
return [
- 'next' => 'Berikutnya »',
+ 'next' => 'Berikutnya »',
'previous' => '« Sebelumnya',
];
diff --git a/lang/id/passwords.php b/lang/id/passwords.php
index 73086042..a8429099 100644
--- a/lang/id/passwords.php
+++ b/lang/id/passwords.php
@@ -3,9 +3,9 @@
declare(strict_types=1);
return [
- 'reset' => 'Kata sandi Anda sudah direset!',
- 'sent' => 'Kami sudah mengirim surel yang berisi tautan untuk mereset kata sandi Anda!',
+ 'reset' => 'Kata sandi Anda sudah direset!',
+ 'sent' => 'Kami sudah mengirim surel yang berisi tautan untuk mereset kata sandi Anda!',
'throttled' => 'Harap tunggu sebelum mencoba lagi.',
- 'token' => 'Token pengaturan ulang kata sandi tidak sah.',
- 'user' => 'Kami tidak dapat menemukan pengguna dengan alamat surel tersebut.',
+ 'token' => 'Token pengaturan ulang kata sandi tidak sah.',
+ 'user' => 'Kami tidak dapat menemukan pengguna dengan alamat surel tersebut.',
];
diff --git a/lang/id/validation.php b/lang/id/validation.php
index c6823a9f..cca7c964 100644
--- a/lang/id/validation.php
+++ b/lang/id/validation.php
@@ -3,151 +3,151 @@
declare(strict_types=1);
return [
- 'accepted' => ':Attribute harus diterima.',
- 'accepted_if' => ':Attribute harus diterima ketika :other berisi :value.',
- 'active_url' => ':Attribute bukan URL yang valid.',
- 'after' => ':Attribute harus berisi tanggal setelah :date.',
- 'after_or_equal' => ':Attribute harus berisi tanggal setelah atau sama dengan :date.',
- 'alpha' => ':Attribute hanya boleh berisi huruf.',
- 'alpha_dash' => ':Attribute hanya boleh berisi huruf, angka, strip, dan garis bawah.',
- 'alpha_num' => ':Attribute hanya boleh berisi huruf dan angka.',
- 'array' => ':Attribute harus berisi sebuah array.',
- 'ascii' => ':Attribute hanya boleh berisi karakter dan simbol alfanumerik single-byte.',
- 'before' => ':Attribute harus berisi tanggal sebelum :date.',
- 'before_or_equal' => ':Attribute harus berisi tanggal sebelum atau sama dengan :date.',
- 'between' => [
- 'array' => ':Attribute harus memiliki :min sampai :max anggota.',
- 'file' => ':Attribute harus berukuran antara :min sampai :max kilobita.',
+ 'accepted' => ':Attribute harus diterima.',
+ 'accepted_if' => ':Attribute harus diterima ketika :other berisi :value.',
+ 'active_url' => ':Attribute bukan URL yang valid.',
+ 'after' => ':Attribute harus berisi tanggal setelah :date.',
+ 'after_or_equal' => ':Attribute harus berisi tanggal setelah atau sama dengan :date.',
+ 'alpha' => ':Attribute hanya boleh berisi huruf.',
+ 'alpha_dash' => ':Attribute hanya boleh berisi huruf, angka, strip, dan garis bawah.',
+ 'alpha_num' => ':Attribute hanya boleh berisi huruf dan angka.',
+ 'array' => ':Attribute harus berisi sebuah array.',
+ 'ascii' => ':Attribute hanya boleh berisi karakter dan simbol alfanumerik single-byte.',
+ 'before' => ':Attribute harus berisi tanggal sebelum :date.',
+ 'before_or_equal' => ':Attribute harus berisi tanggal sebelum atau sama dengan :date.',
+ 'between' => [
+ 'array' => ':Attribute harus memiliki :min sampai :max anggota.',
+ 'file' => ':Attribute harus berukuran antara :min sampai :max kilobita.',
'numeric' => ':Attribute harus bernilai antara :min sampai :max.',
- 'string' => ':Attribute harus berisi antara :min sampai :max karakter.',
+ 'string' => ':Attribute harus berisi antara :min sampai :max karakter.',
],
- 'boolean' => ':Attribute harus bernilai true atau false',
- 'can' => 'Bidang :attribute berisi nilai yang tidak sah.',
- 'confirmed' => 'Konfirmasi :attribute tidak cocok.',
- 'contains' => 'The :attribute field is missing a required value.',
- 'current_password' => 'Kata sandi salah.',
- 'date' => ':Attribute bukan tanggal yang valid.',
- 'date_equals' => ':Attribute harus berisi tanggal yang sama dengan :date.',
- 'date_format' => ':Attribute tidak cocok dengan format :format.',
- 'decimal' => ':Attribute harus memiliki :decimal tempat desimal.',
- 'declined' => ':Attribute ini harus ditolak.',
- 'declined_if' => ':Attribute ini harus ditolak ketika :other bernilai :value.',
- 'different' => ':Attribute dan :other harus berbeda.',
- 'digits' => ':Attribute harus terdiri dari :digits angka.',
- 'digits_between' => ':Attribute harus terdiri dari :min sampai :max angka.',
- 'dimensions' => ':Attribute tidak memiliki dimensi gambar yang valid.',
- 'distinct' => ':Attribute memiliki nilai yang duplikat.',
- 'doesnt_end_with' => ':Attribute tidak boleh diakhiri dengan salah satu dari berikut ini: :values.',
- 'doesnt_start_with' => ':Attribute tidak boleh dimulai dengan salah satu dari berikut ini: :values.',
- 'email' => ':Attribute harus berupa alamat surel yang valid.',
- 'ends_with' => ':Attribute harus diakhiri salah satu dari berikut: :values',
- 'enum' => ':Attribute yang dipilih tidak valid.',
- 'exists' => ':Attribute yang dipilih tidak valid.',
- 'extensions' => 'Bidang :attribute harus memiliki salah satu ekstensi berikut: :values.',
- 'file' => ':Attribute harus berupa sebuah berkas.',
- 'filled' => ':Attribute harus memiliki nilai.',
- 'gt' => [
- 'array' => ':Attribute harus memiliki lebih dari :value anggota.',
- 'file' => ':Attribute harus berukuran lebih besar dari :value kilobita.',
+ 'boolean' => ':Attribute harus bernilai true atau false',
+ 'can' => 'Bidang :attribute berisi nilai yang tidak sah.',
+ 'confirmed' => 'Konfirmasi :attribute tidak cocok.',
+ 'contains' => 'The :attribute field is missing a required value.',
+ 'current_password' => 'Kata sandi salah.',
+ 'date' => ':Attribute bukan tanggal yang valid.',
+ 'date_equals' => ':Attribute harus berisi tanggal yang sama dengan :date.',
+ 'date_format' => ':Attribute tidak cocok dengan format :format.',
+ 'decimal' => ':Attribute harus memiliki :decimal tempat desimal.',
+ 'declined' => ':Attribute ini harus ditolak.',
+ 'declined_if' => ':Attribute ini harus ditolak ketika :other bernilai :value.',
+ 'different' => ':Attribute dan :other harus berbeda.',
+ 'digits' => ':Attribute harus terdiri dari :digits angka.',
+ 'digits_between' => ':Attribute harus terdiri dari :min sampai :max angka.',
+ 'dimensions' => ':Attribute tidak memiliki dimensi gambar yang valid.',
+ 'distinct' => ':Attribute memiliki nilai yang duplikat.',
+ 'doesnt_end_with' => ':Attribute tidak boleh diakhiri dengan salah satu dari berikut ini: :values.',
+ 'doesnt_start_with' => ':Attribute tidak boleh dimulai dengan salah satu dari berikut ini: :values.',
+ 'email' => ':Attribute harus berupa alamat surel yang valid.',
+ 'ends_with' => ':Attribute harus diakhiri salah satu dari berikut: :values',
+ 'enum' => ':Attribute yang dipilih tidak valid.',
+ 'exists' => ':Attribute yang dipilih tidak valid.',
+ 'extensions' => 'Bidang :attribute harus memiliki salah satu ekstensi berikut: :values.',
+ 'file' => ':Attribute harus berupa sebuah berkas.',
+ 'filled' => ':Attribute harus memiliki nilai.',
+ 'gt' => [
+ 'array' => ':Attribute harus memiliki lebih dari :value anggota.',
+ 'file' => ':Attribute harus berukuran lebih besar dari :value kilobita.',
'numeric' => ':Attribute harus bernilai lebih besar dari :value.',
- 'string' => ':Attribute harus berisi lebih besar dari :value karakter.',
+ 'string' => ':Attribute harus berisi lebih besar dari :value karakter.',
],
- 'gte' => [
- 'array' => ':Attribute harus terdiri dari :value anggota atau lebih.',
- 'file' => ':Attribute harus berukuran lebih besar dari atau sama dengan :value kilobita.',
+ 'gte' => [
+ 'array' => ':Attribute harus terdiri dari :value anggota atau lebih.',
+ 'file' => ':Attribute harus berukuran lebih besar dari atau sama dengan :value kilobita.',
'numeric' => ':Attribute harus bernilai lebih besar dari atau sama dengan :value.',
- 'string' => ':Attribute harus berisi lebih besar dari atau sama dengan :value karakter.',
+ 'string' => ':Attribute harus berisi lebih besar dari atau sama dengan :value karakter.',
],
- 'hex_color' => 'Bidang :attribute harus berupa warna heksadesimal yang valid.',
- 'image' => ':Attribute harus berupa gambar.',
- 'in' => ':Attribute yang dipilih tidak valid.',
- 'in_array' => ':Attribute tidak ada di dalam :other.',
- 'integer' => ':Attribute harus berupa bilangan bulat.',
- 'ip' => ':Attribute harus berupa alamat IP yang valid.',
- 'ipv4' => ':Attribute harus berupa alamat IPv4 yang valid.',
- 'ipv6' => ':Attribute harus berupa alamat IPv6 yang valid.',
- 'json' => ':Attribute harus berupa JSON string yang valid.',
- 'list' => 'Bidang :attribute harus berupa daftar.',
- 'lowercase' => ':Attribute harus berupa huruf kecil.',
- 'lt' => [
- 'array' => ':Attribute harus memiliki kurang dari :value anggota.',
- 'file' => ':Attribute harus berukuran kurang dari :value kilobita.',
+ 'hex_color' => 'Bidang :attribute harus berupa warna heksadesimal yang valid.',
+ 'image' => ':Attribute harus berupa gambar.',
+ 'in' => ':Attribute yang dipilih tidak valid.',
+ 'in_array' => ':Attribute tidak ada di dalam :other.',
+ 'integer' => ':Attribute harus berupa bilangan bulat.',
+ 'ip' => ':Attribute harus berupa alamat IP yang valid.',
+ 'ipv4' => ':Attribute harus berupa alamat IPv4 yang valid.',
+ 'ipv6' => ':Attribute harus berupa alamat IPv6 yang valid.',
+ 'json' => ':Attribute harus berupa JSON string yang valid.',
+ 'list' => 'Bidang :attribute harus berupa daftar.',
+ 'lowercase' => ':Attribute harus berupa huruf kecil.',
+ 'lt' => [
+ 'array' => ':Attribute harus memiliki kurang dari :value anggota.',
+ 'file' => ':Attribute harus berukuran kurang dari :value kilobita.',
'numeric' => ':Attribute harus bernilai kurang dari :value.',
- 'string' => ':Attribute harus berisi kurang dari :value karakter.',
+ 'string' => ':Attribute harus berisi kurang dari :value karakter.',
],
- 'lte' => [
- 'array' => ':Attribute harus tidak lebih dari :value anggota.',
- 'file' => ':Attribute harus berukuran kurang dari atau sama dengan :value kilobita.',
+ 'lte' => [
+ 'array' => ':Attribute harus tidak lebih dari :value anggota.',
+ 'file' => ':Attribute harus berukuran kurang dari atau sama dengan :value kilobita.',
'numeric' => ':Attribute harus bernilai kurang dari atau sama dengan :value.',
- 'string' => ':Attribute harus berisi kurang dari atau sama dengan :value karakter.',
+ 'string' => ':Attribute harus berisi kurang dari atau sama dengan :value karakter.',
],
- 'mac_address' => ':Attribute harus berupa alamat MAC yang valid.',
- 'max' => [
- 'array' => ':Attribute maksimal terdiri dari :max anggota.',
- 'file' => ':Attribute maksimal berukuran :max kilobita.',
+ 'mac_address' => ':Attribute harus berupa alamat MAC yang valid.',
+ 'max' => [
+ 'array' => ':Attribute maksimal terdiri dari :max anggota.',
+ 'file' => ':Attribute maksimal berukuran :max kilobita.',
'numeric' => ':Attribute maksimal bernilai :max.',
- 'string' => ':Attribute maksimal berisi :max karakter.',
+ 'string' => ':Attribute maksimal berisi :max karakter.',
],
- 'max_digits' => ':Attribute tidak boleh memiliki lebih dari :max digit.',
- 'mimes' => ':Attribute harus berupa berkas berjenis: :values.',
- 'mimetypes' => ':Attribute harus berupa berkas berjenis: :values.',
- 'min' => [
- 'array' => ':Attribute minimal terdiri dari :min anggota.',
- 'file' => ':Attribute minimal berukuran :min kilobita.',
+ 'max_digits' => ':Attribute tidak boleh memiliki lebih dari :max digit.',
+ 'mimes' => ':Attribute harus berupa berkas berjenis: :values.',
+ 'mimetypes' => ':Attribute harus berupa berkas berjenis: :values.',
+ 'min' => [
+ 'array' => ':Attribute minimal terdiri dari :min anggota.',
+ 'file' => ':Attribute minimal berukuran :min kilobita.',
'numeric' => ':Attribute minimal bernilai :min.',
- 'string' => ':Attribute minimal berisi :min karakter.',
+ 'string' => ':Attribute minimal berisi :min karakter.',
],
- 'min_digits' => ':Attribute tidak boleh memiliki kurang dari :min digit.',
- 'missing' => 'Bidang :attribute harus hilang.',
- 'missing_if' => 'Bidang :attribute harus hilang ketika :other adalah :value.',
- 'missing_unless' => 'Bidang :attribute harus hilang kecuali :other adalah :value.',
- 'missing_with' => 'Kolom :attribute harus hilang saat ada :values.',
- 'missing_with_all' => 'Kolom :attribute harus hilang jika ada :values.',
- 'multiple_of' => ':Attribute harus merupakan kelipatan dari :value',
- 'not_in' => ':Attribute yang dipilih tidak valid.',
- 'not_regex' => 'Format :attribute tidak valid.',
- 'numeric' => ':Attribute harus berupa angka.',
- 'password' => [
- 'letters' => ':Attribute ini harus memiliki setidaknya satu karakter.',
- 'mixed' => ':Attribute ini harus memiliki setidaknya satu huruf kapital dan satu huruf kecil.',
- 'numbers' => ':Attribute ini harus memiliki setidaknya satu angka.',
- 'symbols' => ':Attribute ini harus memiliki setidaknya satu simbol.',
+ 'min_digits' => ':Attribute tidak boleh memiliki kurang dari :min digit.',
+ 'missing' => 'Bidang :attribute harus hilang.',
+ 'missing_if' => 'Bidang :attribute harus hilang ketika :other adalah :value.',
+ 'missing_unless' => 'Bidang :attribute harus hilang kecuali :other adalah :value.',
+ 'missing_with' => 'Kolom :attribute harus hilang saat ada :values.',
+ 'missing_with_all' => 'Kolom :attribute harus hilang jika ada :values.',
+ 'multiple_of' => ':Attribute harus merupakan kelipatan dari :value',
+ 'not_in' => ':Attribute yang dipilih tidak valid.',
+ 'not_regex' => 'Format :attribute tidak valid.',
+ 'numeric' => ':Attribute harus berupa angka.',
+ 'password' => [
+ 'letters' => ':Attribute ini harus memiliki setidaknya satu karakter.',
+ 'mixed' => ':Attribute ini harus memiliki setidaknya satu huruf kapital dan satu huruf kecil.',
+ 'numbers' => ':Attribute ini harus memiliki setidaknya satu angka.',
+ 'symbols' => ':Attribute ini harus memiliki setidaknya satu simbol.',
'uncompromised' => ':Attribute ini telah muncul di kebocoran data. Silahkan memilih :attribute yang berbeda.',
],
- 'present' => ':Attribute wajib ada.',
- 'present_if' => 'Bidang :attribute harus ada ketika :other adalah :value.',
- 'present_unless' => 'Bidang :attribute harus ada kecuali :other adalah :value.',
- 'present_with' => 'Bidang :attribute harus ada bila ada :values.',
- 'present_with_all' => 'Bidang :attribute harus ada ketika ada :values.',
- 'prohibited' => ':Attribute tidak boleh ada.',
- 'prohibited_if' => ':Attribute tidak boleh ada bila :other adalah :value.',
- 'prohibited_unless' => ':Attribute tidak boleh ada kecuali :other memiliki nilai :values.',
- 'prohibits' => ':Attribute melarang isian :other untuk ditampilkan.',
- 'regex' => 'Format :attribute tidak valid.',
- 'required' => ':Attribute wajib diisi.',
- 'required_array_keys' => ':Attribute wajib berisi entri untuk: :values.',
- 'required_if' => ':Attribute wajib diisi bila :other adalah :value.',
+ 'present' => ':Attribute wajib ada.',
+ 'present_if' => 'Bidang :attribute harus ada ketika :other adalah :value.',
+ 'present_unless' => 'Bidang :attribute harus ada kecuali :other adalah :value.',
+ 'present_with' => 'Bidang :attribute harus ada bila ada :values.',
+ 'present_with_all' => 'Bidang :attribute harus ada ketika ada :values.',
+ 'prohibited' => ':Attribute tidak boleh ada.',
+ 'prohibited_if' => ':Attribute tidak boleh ada bila :other adalah :value.',
+ 'prohibited_unless' => ':Attribute tidak boleh ada kecuali :other memiliki nilai :values.',
+ 'prohibits' => ':Attribute melarang isian :other untuk ditampilkan.',
+ 'regex' => 'Format :attribute tidak valid.',
+ 'required' => ':Attribute wajib diisi.',
+ 'required_array_keys' => ':Attribute wajib berisi entri untuk: :values.',
+ 'required_if' => ':Attribute wajib diisi bila :other adalah :value.',
'required_if_accepted' => ':Attribute wajib diisi bila :other sesuai.',
'required_if_declined' => 'The :attribute field is required when :other is declined.',
- 'required_unless' => ':Attribute wajib diisi kecuali :other memiliki nilai :values.',
- 'required_with' => ':Attribute wajib diisi bila terdapat :values.',
- 'required_with_all' => ':Attribute wajib diisi bila terdapat :values.',
- 'required_without' => ':Attribute wajib diisi bila tidak terdapat :values.',
+ 'required_unless' => ':Attribute wajib diisi kecuali :other memiliki nilai :values.',
+ 'required_with' => ':Attribute wajib diisi bila terdapat :values.',
+ 'required_with_all' => ':Attribute wajib diisi bila terdapat :values.',
+ 'required_without' => ':Attribute wajib diisi bila tidak terdapat :values.',
'required_without_all' => ':Attribute wajib diisi bila sama sekali tidak terdapat :values.',
- 'same' => ':Attribute dan :other harus sama.',
- 'size' => [
- 'array' => ':Attribute harus mengandung :size anggota.',
- 'file' => ':Attribute harus berukuran :size kilobyte.',
+ 'same' => ':Attribute dan :other harus sama.',
+ 'size' => [
+ 'array' => ':Attribute harus mengandung :size anggota.',
+ 'file' => ':Attribute harus berukuran :size kilobyte.',
'numeric' => ':Attribute harus berukuran :size.',
- 'string' => ':Attribute harus berukuran :size karakter.',
+ 'string' => ':Attribute harus berukuran :size karakter.',
],
- 'starts_with' => ':Attribute harus diawali salah satu dari berikut: :values',
- 'string' => ':Attribute harus berupa string.',
- 'timezone' => ':Attribute harus berisi zona waktu yang valid.',
- 'ulid' => ':Attribute harus merupakan ULID yang valid.',
- 'unique' => ':Attribute sudah ada sebelumnya.',
- 'uploaded' => ':Attribute gagal diunggah.',
- 'uppercase' => ':Attribute harus berupa huruf kapital.',
- 'url' => 'Format :attribute tidak valid.',
- 'uuid' => ':Attribute harus merupakan UUID yang valid.',
+ 'starts_with' => ':Attribute harus diawali salah satu dari berikut: :values',
+ 'string' => ':Attribute harus berupa string.',
+ 'timezone' => ':Attribute harus berisi zona waktu yang valid.',
+ 'ulid' => ':Attribute harus merupakan ULID yang valid.',
+ 'unique' => ':Attribute sudah ada sebelumnya.',
+ 'uploaded' => ':Attribute gagal diunggah.',
+ 'uppercase' => ':Attribute harus berupa huruf kapital.',
+ 'url' => 'Format :attribute tidak valid.',
+ 'uuid' => ':Attribute harus merupakan UUID yang valid.',
];
diff --git a/lang/vendor/nova/en/validation.php b/lang/vendor/nova/en/validation.php
index 96a79014..8948e76f 100644
--- a/lang/vendor/nova/en/validation.php
+++ b/lang/vendor/nova/en/validation.php
@@ -3,6 +3,6 @@
declare(strict_types=1);
return [
- 'attached' => 'This :attribute is already attached.',
+ 'attached' => 'This :attribute is already attached.',
'relatable' => 'This :attribute may not be associated with this resource.',
];
diff --git a/lang/vendor/nova/id/validation.php b/lang/vendor/nova/id/validation.php
index cc5bb286..ae0c66c0 100644
--- a/lang/vendor/nova/id/validation.php
+++ b/lang/vendor/nova/id/validation.php
@@ -3,6 +3,6 @@
declare(strict_types=1);
return [
- 'attached' => ':Attribute sudah dilampirkan.',
+ 'attached' => ':Attribute sudah dilampirkan.',
'relatable' => ':Attribute ini mungkin tidak berasosiasi dengan sumber ini.',
];
diff --git a/routes/web.php b/routes/web.php
index 7ec6bce6..31a818c7 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,9 +1,7 @@
name('dump-download');
\ No newline at end of file
+Route::get('/dump-download/{filename}', 'App\Http\Controllers\DumpDownloadController@show')->name('dump-download');