From 07d074c2706e16182099ef0f3d88be26e016e411 Mon Sep 17 00:00:00 2001 From: nasser Date: Wed, 9 Jun 2021 22:51:44 +0430 Subject: [PATCH] fix bug undefined --- docs/en/index.html | 4 ++-- docs/index.html | 4 ++-- src/Traits/Creator.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/en/index.html b/docs/en/index.html index 03c252c..9399621 100644 --- a/docs/en/index.html +++ b/docs/en/index.html @@ -58,12 +58,12 @@

Installation

Enter the following command to install Verta

$ composer require hekmatinasser/verta
-

Now you have to add the package to your project by entering the following command

+

You can add the package to your project by entering the following command

// config/app.php
 'providers' => [
     ...
-    Hekmatinasser\Verta\VertaServiceProvider::class,
+    Hekmatinasser\Verta\Laravel\VertaServiceProvider::class,
 ],
 
 'alias' => [
diff --git a/docs/index.html b/docs/index.html
index 44e87d4..9a89a86 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -60,12 +60,12 @@
 

نصب

برای نصب دستور زیر را وارد کنید

$ composer require hekmatinasser/verta
-

حال باید پکیج را درون پروژه خود اضافه کنید برای این کار دستور زیر را وارد کنید

+

می توانید پکیج را درون پروژه خود اضافه کنید برای این کار دستور زیر را وارد کنید

// config/app.php
 'providers' => [
 ...
-Hekmatinasser\Verta\VertaServiceProvider::class,
+Hekmatinasser\Verta\Laravel\VertaServiceProvider::class,
 ],
 
 'alias' => [
diff --git a/src/Traits/Creator.php b/src/Traits/Creator.php
index 0748019..23b301f 100644
--- a/src/Traits/Creator.php
+++ b/src/Traits/Creator.php
@@ -141,6 +141,7 @@ trait Creator
      */
     public static function parse($datetime , $timezone = null)
     {
+        self::loadMessages();
         $names = array_map(function ($value) { return " $value "; }, array_values(self::$messages['year_months']));
         $values = array_map(function ($value) { return "-$value-"; }, range(1,12));