├── resources ├── views │ ├── components │ │ ├── logo.blade.php │ │ ├── response-code.blade.php │ │ ├── logo-cron.blade.php │ │ ├── logo-uptime.blade.php │ │ ├── logo-broken-link.blade.php │ │ ├── pill.blade.php │ │ └── logo-ohdear.blade.php │ ├── brokenLinks.blade.php │ ├── cron.blade.php │ └── uptime.blade.php ├── images │ └── grid-36-24.svg └── css │ └── style.css ├── src ├── OhDearPulse.php ├── Exceptions │ └── SiteIdNotCorrect.php ├── Livewire │ ├── Concerns │ │ ├── UsesOhDearApi.php │ │ └── RemembersApiCalls.php │ ├── OhDearBrokenLinksCardComponent.php │ ├── OhDearCronPulseCardComponent.php │ └── OhDearUptimePulseCardComponent.php ├── OhDearPulseServiceProvider.php └── Commands │ └── VerifyCommand.php ├── package.json ├── tailwind.config.js ├── LICENSE.md ├── CHANGELOG.md ├── composer.json ├── README.md ├── dist └── output.css └── yarn.lock /resources/views/components/logo.blade.php: -------------------------------------------------------------------------------- 1 |
15 |
16 | - [Cron Job Monitoring](https://ohdear.app/docs/features/cron-job-monitoring)
17 |
18 | 
19 |
20 | - [Broken links](https://ohdear.app/docs/features/broken-links-detection)
21 |
22 | 
23 |
24 | ## Installation
25 |
26 | You can install the package via composer:
27 |
28 | ```bash
29 | composer require ohdearapp/ohdear-pulse
30 | ```
31 |
32 | In your `config/services.php` file, add the following lines:
33 |
34 | ```php
35 | 'oh_dear' => [
36 | 'pulse' => [
37 | 'api_key' => env('OH_DEAR_API_TOKEN'),
38 | 'site_id' => env('OH_DEAR_SITE_ID'),
39 | ],
40 | ],
41 | ```
42 |
43 | You can create an API token on the "API Tokens" page at Oh Dear. You'll find the site ID on the "Settings" page of a site on Oh Dear.
44 |
45 | You can execute this artisan command to verify if you set up the configuration correctly.
46 |
47 | ```bash
48 | php artisan ohdear-pulse:verify
49 | ```
50 |
51 | ## Usage
52 |
53 | There are currently three cards available:
54 |
55 | - `ohdear.pulse.uptime`: displays the uptime and performance of a site
56 | - `ohdear.pulse.cron`: displays the results of the cron job monitoring
57 | - `ohdear.pulse.brokenLinks`: displays any broken links that were detected
58 |
59 | You can add the cards to your Pulse dashboard, by first publishing the Pulse's dashboard view:
60 |
61 | ```bash
62 | php artisan vendor:publish --tag=pulse-dashboard
63 | ```
64 |
65 | Next, add the cards to the `resources/views/vendor/pulse/dashboard.blade.php` file:
66 |
67 | ```html
68 |
46 |
47 | {{ $cronCheck->name }}
48 |
49 |
50 |