Error when Updating to Laravel 5.4 - laravel

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",

Related

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

Upgrade laravel project from 5.3 to 5.8

I'm working on a project and i'm trying to upgrade my current version of php 5.6 to 7.3, laravel 5.3 to 5.8 and backpack 0.7 to final version, then ran composer update but all I got was the error below:
Problem 1:
- Conclusion: don't install laravel/framework v5.8.19
- Conclusion: don't install laravel/framework v5.8.18
- Conclusion: don't install laravel/framework v5.8.17
- Conclusion: don't install laravel/framework v5.8.16
- Conclusion: don't install laravel/framework v5.8.15
- Conclusion: don't install laravel/framework v5.8.14
- Conclusion: don't install laravel/framework v5.8.13
- Conclusion: don't install laravel/framework v5.8.12
- Conclusion: don't install laravel/framework v5.8.11
- Conclusion: don't install laravel/framework v5.8.10
- Conclusion: don't install laravel/framework v5.8.9
- Conclusion: don't install laravel/framework v5.8.8
- Conclusion: don't install laravel/framework v5.8.7
- Conclusion: don't install laravel/framework v5.8.6
- Conclusion: don't install laravel/framework v5.8.5
- Conclusion: don't install laravel/framework v5.8.4
- Conclusion: don't install laravel/framework v5.8.3
- Conclusion: don't install laravel/framework v5.8.2
- Conclusion: don't install laravel/framework v5.8.1
- laravelcollective/html v5.3.1 requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.31], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- laravelcollective/html v5.3.1 requires illuminate/view 5.3.* -> satisfiable by laravel/framework[v5.3.31], illuminate/view[v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- Can only install one of: laravel/framework[v5.8.0, v5.3.31].
- don't install illuminate/view v5.3.0|don't install laravel/framework v5.8.0
- don't install illuminate/view v5.3.16|don't install laravel/framework v5.8.0
- don't install illuminate/view v5.3.23|don't install laravel/framework v5.8.0
- don't install illuminate/view v5.3.4|don't install laravel/framework v5.8.0
- Installation request for laravel/framework 5.8.* -> satisfiable by laravel/framework[v5.8.0, v5.8.1, v5.8.10, v5.8.11, v5.8.12, v5.8.13, v5.8.14, v5.8.15, v5.8.16, v5.8.17, v5.8.18, v5.8.19, v5.8.2, v5.8.3, v5.8.4, v5.8.5, v5.8.6, v5.8.7, v5.8.8, v5.8.9].
- Installation request for laravelcollective/html 5.3.1 -> satisfiable by laravelcollective/html[v5.3.1].
This is composer.json requirement
"require": {
"php": ">=7.3.1",
"laravel/framework": "5.3.*",
"laravelcollective/html": "5.3.1",
"backpack/base": "^0.7.14",
"backpack/crud": "^3.1",
"backpack/permissionmanager": "^2.1",
"backpack/langfilemanager": "^1.0",
"mikehaertl/phpwkhtmltopdf": "2.2.1",
"artisaninweb/laravel-soap": "0.3.0.7",
When upgrading Laravel and/or Backpack, it's recommended that you don't jump versions. I've never tried to jump from L5.3 directly to 5.8, but I do not expect that to work.
Both Laravel and Backpack release upgrade guides with each version. That's because the upgrade process is not just changing a number in the composer.json file. It also involves some steps you need to do manually. Otherwise your app won't work. I know it's inconvenient, but it's the only possible way to upgrade code that you can customize.
My recommendation:
Upgrade to Laravel 5.4 & Backpack 3.2
Then upgrade to Laravel 5.5 & Backpack 3.3
Then upgrade to Laravel 5.6 & Backpack 3.4
Then upgrade to Laravel 5.7 & Backpack 3.5
Then upgrade to Laravel 5.8 & Backpack 3.6
You can automate a good part of the Laravel upgrades using Laravel Shift. It's a paid service that makes pull requests to your Github/Gitlab/Bitbucket repo. You can't automate the Backpack upgrades, I'm afraid, but in most cases the steps will be clear and the changes small.
Hope it helps.

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.

Can I use Ionic Push Notifications Channel for Laravel 5.2?

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

Resources