On the second version of the database structure and the library is different. how to make an update without breaking anything?
spatie/laravel-permission
There are Upgrade instructions in the documentation:
https://github.com/spatie/laravel-permission#upgrading
Related
I want to install phpoffice/phpexcel in My Project.
When composer install or composer update, i receive error:
Package phpoffice/phpexcel is abandoned, you should avoid using it.
Use phpoffice/phpspreadsheet instead.
What is wrong with my project? Please help me. My project use PHP version 7.1.3 and Laravel version 5.7
It means the project is not being maintained. you can still use if you want to.
That message you are getting is just a warning, not an error so there is nothing wrong with your project. So you could ignore the warning and continue using the package with your current code.
However, as the message said you should avoid using it because the package might stop working properly if you decide to update laravel, php or any other dependencies. And if it does stop working or you encountered a bug, there will no code maintainer to help you solve your issue.
In your case, phpoffice/phpspreadsheet package actually provide a useful entry in their documentation to help you migrate to their package, so you should definitely give it a read as there are quite a few breaking changes if you decide to use their package.
So I just took over a laravel 5.2 based project with some dependency hell.
The backend is build on a smarch/watchtower package which has been abandoned and laravel 5.3 is the highest version it supports.
tsawler/laravel-filemanager is one more abandoned package.
Now I would like to update the whole project to the latest version of laravel to enjoy the new features, bug fixes and security patches and add the possibility to use other packages.
What are the best practices in such a situation?
Should I go with hijacking the abandoned packages one at a time and update them,
find similar packages with strong community support and replace the abandoned ones,
build the whole project from the start on a fresh copy of laravel 6
or accept the truth and continue on the old version?
any other suggestions?
Links to abandoned packages:
smarch/watchtower
tsawler/laravel-filemanager
Typically, I use packages from vendors that I know will be kept updated (such as Spatie packages). In place of Watchtower, you could use [laravel-permission] https://github.com/spatie/laravel-permission. However, tsawler/laravel-filemanager did install on Laravel v6.x. Though it says use https://github.com/UniSharp/laravel-filemanager so I'd install that instead.
From there you can upgrade from 5.2 to 6.x yourself or have a service like Laravel Shift do it for you. I create a new laravel instance and diff the directories to see what files changed. Also, make sure you read the upgrade guide: https://laravel.com/docs/6.x/upgrade. This might help as well: https://laracasts.com/discuss/channels/laravel/laravel-52-to-6?page=1
I want to migrate the existing project which was built on cakePHP 2.9 version to cakePHP Latest stable version.
Please help me on how to migrate the entire controllers and models to the latest version.
Thanks in advance
The current stable version is 3.6. Cakephp upgrade tool will help you with the process. https://book.cakephp.org/3.0/en/upgrade-tool.html
I want to install this package in my project
https://github.com/spatie/laravel-sitemap
but the installation's failed. the error is
Anyone encountered this error. or their have other better package for laravel sitemap? any tutorial? thanks everyone :)
The error message is pretty clear. You're trying to install spatie/laravel-sitemap:^3.3, which requires laravel/framework:5.5 or higher. So you need to either upgrade to use Laravel 5.5, or use an older version of spatie/laravel-sitemap.
The Github repository lists the available releases. I would suggest looking at v2.4 as a starting point, as the ChangeLog for v3.0 mentions about adding Laravel 5.5 support.
composer require spatie/laravel-sitemap:2.4
Edit:
You asked where to put the generator code. It isn't something you're going to want to run on every request, so I would suggest creating a route dedicated to creating the sitemap.
// routes/web.php
Route::get('sitemap/generate', function () {
SitemapGenerator::create(base_url())->writeToFile($path);
});
I am using cakephp framework 2.3.5 version for my application And now i want to upgrade my cakephp version to 2.9.0.
Can you please suggest me the process how can i upgrade to 2.9.0 version?
install cakephp version 2.8 in your local system, if you want to upgrade whole project then copy your controller,model and view from cakephp 2.3.5 project to your new project and checked that module there will be no major changes if you got any error then let me know.. I have upgraded from version 1.3 to 2.6..
and also read migration guide you will get better idea about new changes.