fix macro carbon
This commit is contained in:
1 parent
d5e95d3579
commit
60446ea760
1 file changed
+4
-4
@@ -76,6 +76,10 @@ class VertaServiceProvider extends ServiceProvider
|
|||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->loadValidators();
|
$this->loadValidators();
|
||||||
|
|
||||||
|
Carbon::macro('toJalali', function ($timezone = null) {
|
||||||
|
return new Verta($this, $timezone);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,10 +92,6 @@ class VertaServiceProvider extends ServiceProvider
|
|||||||
$this->app->bind('verta', function ($app) {
|
$this->app->bind('verta', function ($app) {
|
||||||
return new Verta();
|
return new Verta();
|
||||||
});
|
});
|
||||||
|
|
||||||
Carbon::macro('toJalali', function ($timezone = null) {
|
|
||||||
return new Verta($this, $timezone);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user