- How do I install laravel-notification-channels/pushbullet in a Laravel app?
- Install the package with Composer, then configure the Pushbullet access token as described in the package documentation. Register or auto-discover the service provider if your Laravel version requires it, add PushbulletChannel::class to a notification's via() method, and implement a toPushbullet() payload method. Run a test notification in a non-production app before rolling it out.
- Which Laravel and PHP versions does this Pushbullet notification Channel support?
- The package is described as a Laravel 5.3+ notifications driver, but its last release was June 2022. Newer Laravel and PHP versions should be verified against the package composer.json constraints rather than assumed. Run a short compatibility spike on your target versions and test actual delivery.
- How do I configure the Pushbullet access token for Laravel notifications?
- Add your Pushbullet access token through the package configuration or environment settings, following the README for the expected key. Keep the token out of source control and rotate it like any other API secret. Decide whether the application uses one global token or per-user tokens, because token strategy remains an application responsibility.
- How do I send a Pushbullet notification to a device, contact, or channel?
- Create a Laravel notification, add PushbulletChannel::class to its via() method, and implement toPushbullet() with the target and message payload. Pushbullet supports sending to devices, contacts, and channels, so the payload determines the destination. Start with one internal test recipient before broadening the audience.
- Can I send a title, body, link, or attachment with a Pushbullet notification?
- Yes. The package supports Pushbullet payloads with titles, bodies, links, and optional attachments. Build those fields in your toPushbullet() method and keep the content concise for mobile delivery. Verify attachment behavior and size limits against the current Pushbullet API.
- Does laravel-notification-channels/pushbullet support queued notifications and retries?
- The package fits Laravel's notification system, so you can route the notification through a queue using Laravel's standard queueable notification behavior. However, the package itself does not solve retries, timeout policy, rate limits, or delivery observability. Add queue configuration, failure logging, and a fallback channel if Pushbullet delivery is important.
- Is this Pushbullet channel maintained and safe for production use?
- It is a small, MIT-licensed package with low adoption: 14 stars, zero known dependents, and no release since June 2022. It can be used, but treat it as vendor-risk code and verify compatibility and Pushbullet API behavior yourself. For business-critical alerts, plan an internal owner or a custom channel fallback.
- How do I test Pushbullet notifications in Laravel without sending real pushes?
- Use Laravel's notification fakes and a test notification that asserts PushbulletChannel was selected and the toPushbullet() payload matches expectations. For integration testing, send to a controlled Pushbullet device or test channel and check error handling and timeouts. Keep real-token tests out of CI unless you have a dedicated sandbox token.
- What are the alternatives if this package is incompatible with my Laravel version?
- You can pin compatible Laravel or Guzzle versions, fork the MIT-licensed channel and update its constraints, or implement a minimal custom notification channel using Laravel's HTTP client. The custom channel approach is often small because Pushbullet delivery is just an authenticated HTTP request. Choose based on how much maintenance ownership you want.
- Can I use per-user Pushbullet tokens or multiple Pushbullet accounts?
- The package gives you a notification channel, but token strategy is an application concern. You can design per-user token storage and pass the appropriate token or configuration into the notification flow if the package exposes that path. If it only supports a global token, use a fork or custom channel for multi-account scenarios.