Can I use Ionic Push Notifications Channel for Laravel 5.2? - laravel

I'm trying to install Ionic Push Notifications Channel for Laravel package in Laravel 5.2 project using :
composer require laravel-notification-channels/ionic-push-notifications
as it's in the package documentation
but it seems like this package isn't compatible with Laravel 5.2
I tried also to install an old version using :
composer require laravel-notification-channels/ionic-push-notifications 1.0.0
but also it results in these errors :
Your requirements could not be resolved to an installable set of packages.
[275.5MB/1227.19s]
Problem 1
- Installation request for laravel-notification-channels/ionic-push-notifications 1.0.0 -> satisfiable by laravel-notification-channels/ionic-push-notifications[1.0.0].
- Conclusion: remove laravel/framework v5.2.45
- Conclusion: don't install laravel/framework v5.2.45
- laravel-notification-channels/ionic-push-notifications 1.0.0 requires illuminate/notifications 5.3.* -> satisfiable by illuminate/notifications[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/notifications v5.3.0 requires illuminate/bus 5.3.* -> satisfiable by illuminate/bus[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/notifications v5.3.16 requires illuminate/bus 5.3.* -> satisfiable by illuminate/bus[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/notifications v5.3.23 requires illuminate/bus 5.3.* -> satisfiable by illuminate/bus[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- illuminate/notifications v5.3.4 requires illuminate/bus 5.3.* -> satisfiable by illuminate/bus[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- don't install illuminate/bus v5.3.0|don't install laravel/framework v5.2.45
- don't install illuminate/bus v5.3.16|don't install laravel/framework v5.2.45
- don't install illuminate/bus v5.3.23|don't install laravel/framework v5.2.45
- don't install illuminate/bus v5.3.4|don't install laravel/framework v5.2.45
- Installation request for laravel/framework (locked at v5.2.45, required as 5.2.*) -> satisfiable by laravel/framework[v5.2.45].
So, is there any version to install with Laravel 5.2 or have I to upgrade to Laravel 5.3 to use this package ??

You have to install
composer require laravel-notification-channels/ionic-push-notifications
Setting up the Ionic Push service
Add your Ionic Push Authentication Token to your config/services.php
Now you can use the channel in your via() method inside the notification:
You can easily set different settings for iOS and Android individually
In order to let your Notification know which device token to send to, add the routeNotificationForIonicPush method to your Notifiable model.
For details see this link :
https://github.com/laravel-notification-channels/ionic-push-notifications

Related

Error to install hyn/multi-tenant on Laravel 8 project

I am trying to install the hyn/multi-tenant package in a Laravel 8 project. However when executing the composer require hyn/multi-tenant command, the following error is shown:
Problem 1
- Installation request for laravel/framework (locked at v8.11.2, required as ^8.0) -> satisfiable by laravel/framework[v8.11.2].
- hyn/multi-tenant 5.6.0 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.1 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.2 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.3 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.6.4 requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- hyn/multi-tenant 5.x-dev requires laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev].
- Conclusion: don't install laravel/framework 7.x-dev
- Installation request for hyn/multi-tenant ^5.6 -> satisfiable by hyn/multi-tenant[5.6.0, 5.6.1, 5.6.2, 5.6.3, 5.6.4, 5.x-dev].
Does anyone have an idea how to solve?
This means that the project is not supporting Laravel 8 yet. If you were to look at the source code in GitHub you can also see that the latest commit was months ago. https://github.com/tenancy/multi-tenant
I would suggest using an another package for your tenancy needs, since this one doesn't seem to be maintained well.
Lately I've been doing some testing with https://tenancyforlaravel.com/, it look pretty promising.

composer require laravel/passport not working in laravel 5.8

I'm using Laravel 5.8 although 6.0.3 is available. I'm using it because the tutorial I'm following is using Laravel 5.8.
When, I command:
composer require laravel/passport
it throws an error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.8.35
- Conclusion: don't install laravel/framework v5.8.35
- laravel/passport 8.x-dev requires illuminate/encryption ^6.0|^7.0 -> satisfiable by illuminate/encryption[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- laravel/passport v8.0.0 requires illuminate/encryption ^6.0|^7.0 -> satisfiable by illuminate/encryption[6.x-dev, 7.0.x-dev, v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.4, v6.1.0, v6.2.0, v6.3.0, v6.4.1].
- don't install illuminate/encryption 6.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/encryption 7.0.x-dev|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.1|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.2|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.3|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.0.4|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.1.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.2.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.3.0|don't install laravel/framework v5.8.35
- don't install illuminate/encryption v6.4.1|don't install laravel/framework v5.8.35
- Installation request for laravel/framework (locked at v5.8.35, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.35].
- Installation request for laravel/passport ^8.0 -> satisfiable by laravel/passport[8.x-dev, v8.0.0].
Installation failed, reverting ./composer.json to its original content.
Latest version of Laravel Passport dropped support for Laravel 5.8
Install earlier version
composer require laravel/passport:7.5.1
From the release notes of Laravel Passport
Changed
Rework HandlesOAuthErrors trait to middleware (#937)
Use a renderable exception for OAuth errors (#1066)
Use diactoros 2.0 and psr-http-factory (aadf603)
Replaced helpers with Blade directives (#939)
Use caret for constraints (d906804)
Dropped support for Laravel 5.8 (654cc09)
Dropped support for PHP 7.1 (3c830ac)
Upgrade to league/oauth2-server 8.0 (97e3026)
You can use this command to install passport on laravel 5.8 projects: composer require laravel/passport "7.5.1" or you can include passport in composer dependecies:
"require": {
...
"laravel/passport": "7.5.1",
....
}
and then run composer update Both will install passport in your project.
composer require laravel/passport works on the latest version of laravel.
You have to download the version according to your laravel version.
So to solve, go-to Laravel docs and select the version you are currently running and then go to Passport it will show you the appropriate version of Passport to install for your version of laravel.

Can't install SweetAlert2 in Laravel 6.0

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for realrashid/sweet-alert ^2.0 -> satisfiable by realrashid/sweet-alert[v2.0].
- Conclusion: remove laravel/framework v6.0.0
- Conclusion: don't install laravel/framework v6.0.0
- realrashid/sweet-alert v2.0 requires laravel/framework ~5.4.0|~5.8.0|~5.9.0 -> satisfiable by laravel/framework[5.4.x-dev, 5.8.x-dev].
- Can only install one of: laravel/framework[5.8.x-dev, v6.0.0].
- Can only install one of: laravel/framework[5.4.x-dev, v6.0.0].
- Installation request for laravel/framework (locked at v6.0.0, required as ^6.0) -> satisfiable by laravel/framework[v6.0.0].
The realrashid/sweet-alert package has not been updated for use in Laravel 6.0. You will have to wait until it is updated, update the package yourself, or use a different package for SweetAlert2.
Update: The package has been updated for use with Laravel 6.0.
composer require realrashid/sweet-alert

Failed to install laravel-setup-wizard

In my Laravel 5.6 application I tried to install laravel-setup-wizard
plugin and got error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for marvinlabs/laravel-setup-wizard ^0.2.1 -> satisfiable by marvinlabs/laravel-setup-wizard[0.2.1].
- Conclusion: remove laravel/framework v5.6.33
- Conclusion: don't install laravel/framework v5.6.33
- marvinlabs/laravel-setup-wizard 0.2.1 requires illuminate/support 5.4.* -> satisfiable by illuminate/support[5.4.x-dev, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- illuminate/support 5.4.x-dev conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.0 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.13 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.17 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.19 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.27 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.36 conflicts with laravel/framework[v5.6.33].
- illuminate/support v5.4.9 conflicts with laravel/framework[v5.6.33].
- Installation request for laravel/framework (locked at v5.6.33, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.33].
Installation failed, reverting ./composer.json to its original content.
I have :
$ php artisan --version
Laravel Framework 5.6.33
1) Does it mean that this plugin is not suitable for laravel 5.6 project?
If there is a way to install it somehow?
2) Can you advice some plugin/script compatible with bootstrap 4.1 ?
Thanks!
Yes this means it is compatible with Laravel 5.4 and not with 5.6.
I scrolled through the readme, didn't really do any real research, but i found this:
Credits:
Some code is taken from another similar project: RachidLaasri/LaravelInstaller
Maybe take a look there?
EDIT: I see now that the code has not been updated for over a year. Maybe it is not the best decision to look at libraries which are not in active development. Try to look for something more active. Also, someone opened an issue on the repo almost a year ago that it is not compatible with Laravel 5.5 (So you can conclude altogether it also wont work with Laravel 5.6). To which the author replied that Pull Requests are welcome and that was it, it seems the repo owner wont put any effort in it anymore.

Error when Updating to Laravel 5.4

I'm trying to update Laravel 5.3 to Laravel 5.4 that was released yesturday, and I get this message:
Problem 1
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- laravelcollective/html 5.3.x-dev requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.20], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- Can only install one of: laravel/framework[v5.4.0, v5.3.20].
- don't install illuminate/view v5.3.0|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.16|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.23|don't install laravel/framework v5.4.0
- don't install illuminate/view v5.3.4|don't install laravel/framework v5.4.0
- Installation request for laravel/framework 5.4.0 -> satisfiable by laravel/framework[v5.4.0].
- Installation request for laravelcollective/html 5.3.*-dev -> satisfiable by laravelcollective/html[5.3.x-dev].
Thing is I don't see laravelcollective has release a 5.4 version.
Do I need to wait for them to release new version or am I missing something?
Why isn't it in the upgrade guide, it is a quite important lib in Laravel.
You have some options. Laravel Collective is a popular package, so people are already applying the fixes required for it to work on 5.4. Check out the following thread on a pull request.
https://github.com/LaravelCollective/html/pull/276
So, in order to use the package with 5.4, based on comments in the thread, you'll need to change your composer.json to look like this.
"laravel/collective": "5.4.x-dev",
Then run composer update
If you want you can also use a specific commit. In this case, to use the commit on this pull request, your composer.json would look like so.
"laravelcollective/html": "dev-master#92f3ba71c5c11c752ddd68d614f5f0665e759220",

Resources