onesignal
onesignal copied to clipboard
Enable it for php8.1
It's not applicable for the php8.1 version
.
You can easily create a fork for this.
I've already done it so you can skip steps 1-3 but for the sake of education I included it.
- Click "Fork" on github.
- Create a new branch called "fix-laravel9" (obviously can be anything)
- Edit composer.json to allow php8.1 and laravel 9
- Add this to your composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/robjbrain/onesignal"
}
],
"require": {
...
"laravel-notification-channels/onesignal": "dev-fix-laravel9"
}
- run
composer update
Then it will work!
What this is doing is telling composer to look at the forked repo but still use the original name.
You have to use a different branch name and prefix it with "dev". I don't know why that is, presumably hard coded into composer in some way.
@robjbrain Thanks for your reply or time and for sharing your knowledge.