forked from a1gard/xshop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
714 B
PHTML
37 lines
714 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Carbon\Carbon;
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use Illuminate\Pagination\Paginator;
|
||
|
use Xmen\StarterKit\Helpers\TDate;
|
||
|
|
||
|
class AppServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Register any application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Bootstrap any application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
//
|
||
|
Paginator::useBootstrap();
|
||
|
Carbon::macro('jdate', function ($format, $tr_num = 'fa') {
|
||
|
$dt = TDate::GetInstance();
|
||
|
return $dt->PDate($format, self::this()->timestamp);
|
||
|
});
|
||
|
}
|
||
|
}
|