install pluggin dompdf

This commit is contained in:
KhatamNugraha
2024-03-04 15:03:52 +07:00
parent 7778305e68
commit d93dfc764f
2 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,7 @@ namespace App\Providers;
use Illuminate\Database\Schema\Builder;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Blade;
class AppServiceProvider extends ServiceProvider
{
@ -26,5 +27,11 @@ class AppServiceProvider extends ServiceProvider
{
// Update defaultStringLength
Builder::defaultStringLength(191);
}
Blade::directive('currrency', function($expression)
{
return "<?php echo number_format ($expression , 0,',','.') ?>";
});
}
}