37 lines
698 B
PHP
37 lines
698 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Database\Schema\Builder;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\Blade;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Update defaultStringLength
|
|
Builder::defaultStringLength(191);
|
|
Blade::directive('currrency', function($expression)
|
|
{
|
|
return "<?php echo number_format ($expression , 0,',','.') ?>";
|
|
});
|
|
|
|
|
|
}
|
|
} |