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));