Skip to content

Commit eab5d2e

Browse files
committed
polish
1 parent 2298df1 commit eab5d2e

File tree

2 files changed

+91
-31
lines changed

2 files changed

+91
-31
lines changed

config/mobile-pass.php

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,50 @@
22

33
return [
44
/*
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+
*/
830
'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,
1234
],
1335

1436
/*
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+
*/
1840
'models' => [
1941
'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,
2244
],
2345

2446
/*
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+
*/
2749
'builders' => [
2850
'apple' => [
2951
'airline' => Spatie\LaravelMobilePass\Builders\Apple\AirlinePassBuilder::class,
@@ -33,21 +55,4 @@
3355
'store_card' => Spatie\LaravelMobilePass\Builders\Apple\StoreCardPassBuilder::class,
3456
],
3557
],
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-
],
5358
];

docs/installation-setup.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,62 @@ php artisan vendor:publish --tag="mobile-pass-config"
2424
This is the content of the published config file:
2525

2626
```php
27-
TODO: paste final config file here
27+
return [
28+
/*
29+
* Read the "Getting credentials from Apple" section in the documentation
30+
* to learn how to get these values.
31+
*/
32+
'apple' => [
33+
'organisation_name' => env('MOBILE_PASS_APPLE_ORGANISATION_NAME'),
34+
'type_identifier' => env('MOBILE_PASS_APPLE_TYPE_IDENTIFIER'),
35+
'team_identifier' => env('MOBILE_PASS_APPLE_TEAM_IDENTIFIER'),
36+
37+
/*
38+
* These values are used to ensure secure communication with Apple.
39+
*/
40+
'apple_push_base_url' => 'https://api.push.apple.com/3/device',
41+
'certificate_path' => env('MOBILE_PASS_APPLE_CERTIFICATE_PATH'),
42+
'certificate_contents' => env('MOBILE_PASS_APPLE_CERTIFICATE_CONTENTS'),
43+
'certificate_password' => env('MOBILE_PASS_APPLE_CERTIFICATE_PASSWORD'),
44+
'webservice' => [
45+
'secret' => env('MOBILE_PASS_APPLE_WEBSERVICE_SECRET'),
46+
'host' => env('MOBILE_PASS_APPLE_WEBSERVICE_HOST'),
47+
],
48+
],
49+
50+
/*
51+
* The actions perform core tasks offered by this package. You can customize the behaviour
52+
* by creating your own action class that extend the one that ships with the package.
53+
*/
54+
'actions' => [
55+
'notify_apple_of_pass_update' => Spatie\LaravelMobilePass\Actions\Apple\NotifyAppleOfPassUpdateAction::class,
56+
'register_device' => Spatie\LaravelMobilePass\Actions\Apple\RegisterDeviceAction::class,
57+
'unregister_device' => Spatie\LaravelMobilePass\Actions\Apple\UnregisterDeviceAction::class,
58+
],
59+
60+
/*
61+
* These are the models used by this package. You can replace them with
62+
* your own models by extending the ones that ship with the package.
63+
*/
64+
'models' => [
65+
'mobile_pass' => Spatie\LaravelMobilePass\Models\MobilePass::class,
66+
'apple_mobile_pass_registration' => Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassRegistration::class,
67+
'apple_mobile_pass_device' => Spatie\LaravelMobilePass\Models\Apple\AppleMobilePassDevice::class,
68+
],
69+
70+
/*
71+
* The builders are responsible for creating the pass that will be stored in the `mobile_passes` table.
72+
*/
73+
'builders' => [
74+
'apple' => [
75+
'airline' => Spatie\LaravelMobilePass\Builders\Apple\AirlinePassBuilder::class,
76+
'boarding' => Spatie\LaravelMobilePass\Builders\Apple\BoardingPassBuilder::class,
77+
'coupon' => Spatie\LaravelMobilePass\Builders\Apple\CouponPassBuilder::class,
78+
'generic' => Spatie\LaravelMobilePass\Builders\Apple\GenericPassBuilder::class,
79+
'store_card' => Spatie\LaravelMobilePass\Builders\Apple\StoreCardPassBuilder::class,
80+
],
81+
],
82+
];
2883
```
2984

3085
## Migrating the database

0 commit comments

Comments
 (0)