Skip to content

Commit 9f6cfaa

Browse files
committed
Remove LINE Notify
1 parent bd754f6 commit 9f6cfaa

17 files changed

+7
-709
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
I'm not going to write all the changes.
44

5+
## v4.0.0 (2025-02-23)
6+
- Laravel 12 support
7+
- Drop Laravel10/PHP8.1 support
8+
- Remove LINE Notify
9+
510
## v3.3.0 (2024-10-07)
611
- Add Massaging API version of Notification channel.
712
- **Deprecated LINE Notify** (Removed in v4.0)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
- Including Socialite drivers(LINE Login)
1313

1414
## Requirements
15-
- PHP >= 8.1
16-
- Laravel >= 10.0
15+
- PHP >= 8.2
16+
- Laravel >= 11.0
1717

1818
## Versioning
1919
- Basic : semver

config/line.php

-12
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,4 @@
2121
'client_secret' => env('LINE_LOGIN_CLIENT_SECRET'),
2222
'redirect' => env('LINE_LOGIN_REDIRECT'),
2323
],
24-
25-
/**
26-
* LINE Notify.
27-
*
28-
* @deprecated
29-
*/
30-
'notify' => [
31-
'client_id' => env('LINE_NOTIFY_CLIENT_ID'),
32-
'client_secret' => env('LINE_NOTIFY_CLIENT_SECRET'),
33-
'redirect' => env('LINE_NOTIFY_REDIRECT'),
34-
'personal_access_token' => env('LINE_NOTIFY_PERSONAL_ACCESS_TOKEN'),
35-
],
3624
];

docs/notify.md

-152
This file was deleted.

docs/socialite.md

-36
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
## Available drivers
44
- LINE Login `line-login`
55
- https://developers.line.biz/en/docs/line-login/
6-
- LINE Notify `line-notify`
7-
- https://notify-bot.line.me/
86
### Unavailable
97
- LINE WORKS
108
- https://developers.worksmobile.com/
@@ -19,13 +17,6 @@ LINE_LOGIN_CLIENT_SECRET=
1917
LINE_LOGIN_REDIRECT=
2018
```
2119

22-
LINE Notify
23-
```
24-
LINE_NOTIFY_CLIENT_ID=
25-
LINE_NOTIFY_CLIENT_SECRET=
26-
LINE_NOTIFY_REDIRECT=
27-
```
28-
2920
## Usage(LINE Login)
3021

3122
### routes/web.php
@@ -104,30 +95,3 @@ https://developers.line.biz/en/docs/line-login/integrate-line-login/#scopes
10495
->redirect();
10596
}
10697
```
107-
108-
## Usage(LINE Notify)
109-
Almost the same as LINE Login, but the user only has a `token`.
110-
111-
```php
112-
public function callback(Request $request)
113-
{
114-
if ($request->missing('code')) {
115-
dd($request);
116-
}
117-
118-
/**
119-
* @var \Laravel\Socialite\Two\User
120-
*/
121-
$user = Socialite::driver('line-notify')->user();
122-
123-
$request->user()
124-
->fill([
125-
'notify_token' => $user->token
126-
])->save();
127-
128-
return redirect()->route('home');
129-
}
130-
```
131-
132-
It can't be used for user registration.
133-
Used to add a notification to the authenticated user.

src/Contracts/NotifyFactory.php

-28
This file was deleted.

src/Facades/LineNotify.php

-25
This file was deleted.

src/Notifications/LineNotifyChannel.php

-41
This file was deleted.

0 commit comments

Comments
 (0)