Comments (11)
i try to upgrade it :)
from cloner.
Probably not in the short term but happy to take PRs or add a new maintainer if someone wants to contribute.
from cloner.
I just bumped version constraints in both cloner and upchuck packages, pointed composer to my forks and was able to upgrade to Laravel 6. However, some updates in tests were required as well.
I use cloner in Laravel Nova to handle resource cloning, tested here and there - seems to work perfectly fine with L6.
from cloner.
from cloner.
I released this as 3.5.0, thanks @djoudi.
Also, if anyone wants to get involved as a maintainer, lemme know and I'll add you to the project.
from cloner.
@weotch it seems you forgot to merge the pr #27
from cloner.
I just bumped version constraints in both cloner and upchuck packages, pointed composer to my forks and was able to upgrade to Laravel 6. However, some updates in tests were required as well.
I use cloner in Laravel Nova to handle resource cloning, tested here and there - seems to work perfectly fine with L6.
Spot on, I'm looking at https://github.com/ihorvorotnov/cloner/commits/master.
it may be worth specifying versions restraints like https://github.com/owen-it/laravel-auditing/blob/master/composer.json#L42-L46 - this way you can allow version 5.8 and 6.0.
It a shame that forks are required for smaller packages like this, as Laravel 6 is a LTS release.
I guess for the time being forks are required :(
from cloner.
@ultrono Yeah, I used most recent versions just to test whether it'll work with L6 out of the box, without any actual code changes. Went through L6 upgrade guide and checked for usage of changed methods etc - didn't find anything within the package code so I'm assuming it's a matter of versions bump only.
Giving it another day or two for my editors to test the cloning functionality on a real project, if anything goes wrong - they'll let me know. If not - will update versions with alternatives and submit PRs to both packages.
Worth mentioning that tests are actually broken (apart from using long deprecated PHPUnit_Framework_TestCase
), but there's a separate issue/PR trying to address this so I'll probably skip it in my PRs.
Also, one more thing - the package uses (outdated) satooshi/php-coveralls which is deprecated and should be replaced with php-coveralls/php-coveralls. However, that should be handled in a separate PR too I believe.
from cloner.
@ultrono Yeah, I used most recent versions just to test whether it'll work with L6 out of the box, without any actual code changes. Went through L6 upgrade guide and checked for usage of changed methods etc - didn't find anything within the package code so I'm assuming it's a matter of versions bump only.
Giving it another day or two for my editors to test the cloning functionality on a real project, if anything goes wrong - they'll let me know. If not - will update versions with alternatives and submit PRs to both packages.
Worth mentioning that tests are actually broken (apart from using long deprecated
PHPUnit_Framework_TestCase
), but there's a separate issue/PR trying to address this so I'll probably skip it in my PRs.Also, one more thing - the package uses (outdated) satooshi/php-coveralls which is deprecated and should be replaced with php-coveralls/php-coveralls. However, that should be handled in a separate PR too I believe.
Great stuff. Have just pulled down your updates into a vanilla Laravel 6 project. Cloning simple models and models with multiple relations worked great 👍
from cloner.
Actually, not sure of it's just myself but the changes aren't present on packagist or the main repository i.e. https://github.com/BKWLD/cloner/blob/master/composer.json#L13 vs Laravel 6 support from #27 at
Line 13 in f53a74e
from cloner.
i don't see the change at 3.5.0 release
from cloner.
Related Issues (20)
- Change some fields during copying HOT 1
- Self Relational Clone HOT 2
- Problem with polymorphic relations
- Change some fields during copying HOT 2
- Duplicate attachment from original model
- onCloned HOT 1
- Application::make() should not be called statically HOT 2
- How to clone with relationship
- Laravel 8 compatiblity? HOT 1
- Can't clone the 'BelongsTo' relation
- Clone BelongsToMany relation: Add new rows HOT 1
- How to replicate WITH `hasMany()` relationship and `unique()` attribute HOT 1
- Laravel 9 support HOT 2
- Nested relations HOT 1
- Spatie media() relationship not duplicate
- update foreign IDs
- Adjacency list parent_id duplication messes up tree
- Laravel 11 support
- Call to undefined method Illuminate\Database\Eloquent\Relations\HasOneThrough::save()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloner.