Skip to main content

Overview

Use LineChannel to send LINE messages through Laravel Notifications.
LINE Notify has been discontinued. Notifications now use the Messaging API, which has monthly message limits depending on your pricing plan. See Messaging API pricing for details.

Notification class

Return LineChannel::class from via() and define the message in toLine().

Sending notifications

On-demand notifications

To send a notification without a user model, use Notification::route(). The routing value is a userId or groupId.

User model notifications

Define routeNotificationForLine() on the User model to route per-user.
A userId or groupId can be obtained from Webhook events such as FollowEvent or JoinEvent.

Message types

Text

Up to 5 messages can be sent at once.

Custom sender name and icon

Call withSender() before any message-adding method.
You can also pass name and icon directly to create():

Sticker

Only stickers listed on the sticker list can be used.

Image

Specify a public URL.

Video

Specify a public URL.

Other message types

Use message() to add any message type. Set the type with setType().
For the latest updates, see the GitHub repository.
Last modified on May 3, 2026