Last change
on this file was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago |
|
-
Property mode
set to
100644
|
File size:
829 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace App\Providers;
|
---|
4 |
|
---|
5 | use App\Models\Organizer;
|
---|
6 | use App\Models\Transaction;
|
---|
7 | use Illuminate\Support\Facades\Blade;
|
---|
8 | use Illuminate\Support\ServiceProvider;
|
---|
9 | use Laravel\Cashier\Cashier;
|
---|
10 |
|
---|
11 | class 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.