|
2 | 2 |
|
3 | 3 | return [ |
4 | 4 | /* |
5 | | - * The actions perform core tasks offered by this package. You can customize the behaviour |
6 | | - * by creating your own action class that extend the one that ships with the package. |
7 | | - */ |
| 5 | + * Read the "Getting credentials from Apple" section in the documentation |
| 6 | + * to learn how to get these values. |
| 7 | + */ |
| 8 | + 'apple' => [ |
| 9 | + 'organisation_name' => env('MOBILE_PASS_APPLE_ORGANISATION_NAME'), |
| 10 | + 'type_identifier' => env('MOBILE_PASS_APPLE_TYPE_IDENTIFIER'), |
| 11 | + 'team_identifier' => env('MOBILE_PASS_APPLE_TEAM_IDENTIFIER'), |
| 12 | + |
| 13 | + /* |
| 14 | + * These values are used to ensure secure communication with Apple. |
| 15 | + */ |
| 16 | + 'apple_push_base_url' => 'https://api.push.apple.com/3/device', |
| 17 | + 'certificate_path' => env('MOBILE_PASS_APPLE_CERTIFICATE_PATH'), |
| 18 | + 'certificate_contents' => env('MOBILE_PASS_APPLE_CERTIFICATE_CONTENTS'), |
| 19 | + 'certificate_password' => env('MOBILE_PASS_APPLE_CERTIFICATE_PASSWORD'), |
| 20 | + 'webservice' => [ |
| 21 | + 'secret' => env('MOBILE_PASS_APPLE_WEBSERVICE_SECRET'), |
| 22 | + 'host' => env('MOBILE_PASS_APPLE_WEBSERVICE_HOST'), |
| 23 | + ], |
| 24 | + ], |
| 25 | + |
| 26 | + /* |
| 27 | + * The actions perform core tasks offered by this package. You can customize the behaviour |
| 28 | + * by creating your own action class that extend the one that ships with the package. |
| 29 | + */ |
8 | 30 | 'actions' => [ |
9 | | - 'notify_apple_of_pass_update' => \Spatie\LaravelMobilePass\Actions\Apple\NotifyAppleOfPassUpdateAction::class, |
10 | | - 'register_device' => \Spatie\LaravelMobilePass\Actions\Apple\RegisterDeviceAction::class, |
11 | | - 'unregister_device' => \Spatie\LaravelMobilePass\Actions\Apple\UnregisterDeviceAction::class, |
| 31 | + 'notify_apple_of_pass_update' => Spatie\LaravelMobilePass\Actions\Apple\NotifyAppleOfPassUpdateAction::class, |
| 32 | + 'register_device' => Spatie\LaravelMobilePass\Actions\Apple\RegisterDeviceAction::class, |
| 33 | + 'unregister_device' => Spatie\LaravelMobilePass\Actions\Apple\UnregisterDeviceAction::class, |
12 | 34 | ], |
13 | 35 |
|
14 | 36 | /* |
15 | | - * These are the models used by this package. You can replace them with |
16 | | - * your own models by extending the ones that ship with the package. |
17 | | - */ |
| 37 | + * These are the models used by this package. You can replace them with |
| 38 | + * your own models by extending the ones that ship with the package. |
| 39 | + */ |
18 | 40 | 'models' => [ |
19 | 41 | 'mobile_pass' => Spatie\LaravelMobilePass\Models\MobilePass::class, |
20 | | - 'apple_mobile_pass_registration' => \Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassRegistration::class, |
21 | | - 'apple_mobile_pass_device' => \Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassDevice::class, |
| 42 | + 'apple_mobile_pass_registration' => Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassRegistration::class, |
| 43 | + 'apple_mobile_pass_device' => Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassDevice::class, |
22 | 44 | ], |
23 | 45 |
|
24 | 46 | /* |
25 | | - * The builders are responsible for creating the pass that will be stored in the `mobile_passes` table. |
26 | | - */ |
| 47 | + * The builders are responsible for creating the pass that will be stored in the `mobile_passes` table. |
| 48 | + */ |
27 | 49 | 'builders' => [ |
28 | 50 | 'apple' => [ |
29 | 51 | 'airline' => Spatie\LaravelMobilePass\Builders\Apple\AirlinePassBuilder::class, |
|
33 | 55 | 'store_card' => Spatie\LaravelMobilePass\Builders\Apple\StoreCardPassBuilder::class, |
34 | 56 | ], |
35 | 57 | ], |
36 | | - |
37 | | - /* |
38 | | - * The values are used to ensure a secure communication with Apple. |
39 | | - */ |
40 | | - 'apple' => [ |
41 | | - 'organisation_name' => env('MOBILE_PASS_APPLE_ORGANISATION_NAME', 'Spatie'), |
42 | | - 'type_identifier' => env('MOBILE_PASS_APPLE_TYPE_IDENTIFIER'), |
43 | | - 'team_identifier' => env('MOBILE_PASS_APPLE_TEAM_IDENTIFIER'), |
44 | | - 'apple_push_base_url' => 'https://api.push.apple.com/3/device', |
45 | | - 'certificate_path' => env('MOBILE_PASS_APPLE_CERTIFICATE_PATH'), |
46 | | - 'certificate_contents' => env('MOBILE_PASS_APPLE_CERTIFICATE_CONTENTS'), |
47 | | - 'certificate_password' => env('MOBILE_PASS_APPLE_CERTIFICATE_PASSWORD'), |
48 | | - 'webservice' => [ |
49 | | - 'secret' => env('MOBILE_PASS_APPLE_WEBSERVICE_SECRET'), |
50 | | - 'host' => env('MOBILE_PASS_APPLE_WEBSERVICE_HOST'), |
51 | | - ], |
52 | | - ], |
53 | 58 | ]; |
0 commit comments