source: app/Providers/AppServiceProvider.php

Last change on this file was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago
  • Initial commit;
  • Property mode set to 100644
File size: 829 bytes
RevLine 
[dfae77e]1<?php
2
3namespace App\Providers;
4
5use App\Models\Organizer;
6use App\Models\Transaction;
7use Illuminate\Support\Facades\Blade;
8use Illuminate\Support\ServiceProvider;
9use Laravel\Cashier\Cashier;
10
11class AppServiceProvider extends ServiceProvider
12{
13 /**
14 * Register any application services.
15 *
16 * @return void
17 */
18 public function register()
19 {
20 Cashier::ignoreMigrations();
21 }
22
23 /**
24 * Bootstrap any application services.
25 *
26 * @return void
27 */
28 public function boot()
29 {
30// Cashier::useCustomerModel(Organizer::class);
31// Cashier::useSubscriptionModel(Transaction::class);
32// Cashier::calculateTaxes();
33 Blade::directive('currency', function ($money) {
34 return "<?php echo '$' . number_format($money, 2); ?>";
35 });
36 }
37}
Note: See TracBrowser for help on using the repository browser.