We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1989f2e commit a064953Copy full SHA for a064953
src/Miladr/Jalali/JalaliServiceProvider.php
@@ -37,6 +37,17 @@ public function register()
37
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
38
$loader->alias('jDate', 'Miladr\Jalali\jDate');
39
});
40
+
41
+ $this->app['jDateTime'] = $this->app->share(function($app)
42
+ {
43
+ return new jDateTime;
44
+ });
45
+ $this->app->booting(function()
46
47
+ $loader = \Illuminate\Foundation\AliasLoader::getInstance();
48
+ $loader->alias('jDateTime', 'Miladr\Jalali\jDateTime');
49
50
51
52
}
53
0 commit comments