PHPackages                             relative/laravel-expo-push-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. relative/laravel-expo-push-notifications

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

relative/laravel-expo-push-notifications
========================================

Expo Push Notifications Driver for Laravel Notifications, PHP 7.4

1.0.2(5y ago)67.6k↓50%6[5 issues](https://github.com/agilicent/laravel-expo-push-notifications/issues)[3 PRs](https://github.com/agilicent/laravel-expo-push-notifications/pulls)MITPHPPHP &gt;=7.4

Since Dec 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/agilicent/laravel-expo-push-notifications)[ Packagist](https://packagist.org/packages/relative/laravel-expo-push-notifications)[ Docs](https://github.com/relative/laravel-expo-push-notifications)[ RSS](/packages/relative-laravel-expo-push-notifications/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Laravel Expo Push Notifications
===============================

[](#laravel-expo-push-notifications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f393f95c92582735772c1b6a47c60800e721ec3058c2ca673d0a12a781c241f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72656c61746976652f6c61726176656c2d6578706f2d707573682d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/relative/laravel-expo-push-notifications)[![Total Downloads](https://camo.githubusercontent.com/66c53bd579554c1318259cd17453b20ce26631992eb78e9141e662f592f9d7ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72656c61746976652f6c61726176656c2d6578706f2d707573682d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/relative/laravel-expo-push-notifications)

An Expo Push Notifications driver for Laravel Notifications.

Automatically expires PushTokens if they fail due to `DeviceNotRegistered` error, and won't use them again.

Stores data about Push Notification delivery status.

Installation
------------

[](#installation)

Via Composer

```
$ composer require relative/laravel-expo-push-notifications
```

Run migrations

```
$ php artisan migrate
```

Optional: Publish migrations &amp; configuration

```
$ php artisan vendor:publish --provider="Relative\LaravelExpoPushNotifications\ExpoPushNotificationsServiceProvider"
```

If you use UUIDs for your model `id` fields, publish the migrations and follow the instructions in the file to switch to string `id` columns.

Usage
-----

[](#usage)

### Setup your notifiable users

[](#setup-your-notifiable-users)

To get started, add the `HasPushTokens` trait to your notifiable class(es), e.g. your `App\User` model

```
