PHPackages                             dustinhsiao21/laravel-line-notify - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. dustinhsiao21/laravel-line-notify

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dustinhsiao21/laravel-line-notify
=================================

line notify webhook pkg

162PHP

Since Jun 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dustinhsiao21/laravel-line-notify)[ Packagist](https://packagist.org/packages/dustinhsiao21/laravel-line-notify)[ RSS](/packages/dustinhsiao21-laravel-line-notify/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Webhook notifications channel for Laravel 5.3 [![Build Status](https://camo.githubusercontent.com/3d753d65d7da60af43ce66a3a6355f0da59cf0546734271d4f4646379adb8238/68747470733a2f2f7472617669732d63692e6f72672f64757374696e687369616f32312f6c61726176656c2d6c696e652d6e6f746966792d776562686f6f6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dustinhsiao21/laravel-line-notify-webhook) [![StyleCI](https://camo.githubusercontent.com/cca48ab82141273b979092d80c0ccb2b1cb7310f3a32d662d373fb4c16953af6/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3132333234333833342f736869656c643f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/cca48ab82141273b979092d80c0ccb2b1cb7310f3a32d662d373fb4c16953af6/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3132333234333833342f736869656c643f6272616e63683d6d6173746572)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#webhook-notifications-channel-for-laravel-53--)

#### Requirement

[](#requirement)

- PHP 7.0+
- Laravel 5.3+

#### Installation

[](#installation)

```
composer require dustinhsiao21/laravel-line-notify
```

#### Usage

[](#usage)

Add the `routeNotificationForLine` method to your Notifiable model. This method needs to return your Line Notify OAuth2 token. [Read me Document](https://notify-bot.line.me/doc/en/)

```
/**
* @return string Line Notify OAuth2 token
*/
public funtcion routeNotificationForLine()
{
    return 'ADD_YOUR_ACCESS_TOKEN_HERE';
}
```

Then you can use the channel in your `via()` method inside the notification. Also you can add the `toLine()` method.

```
