This guide will help you update your app built using Poser when moving up MAJOR version numbers. As Poser uses semantic versioning there is no need to make any upgrade changes unless the major version number increases.
Expected upgrade time: 0 seconds
This is an update by name only. No breaking changes have been added. Party on, Garth!
Expected upgrade time: 30 seconds
This update adds a new config entry to the config/poser.php
file that enables better compatibility with Linux systems. You may either republish the config file using php artisan vendor:publish --tag=poser
or add the entry yourself:
return [
// Previous config entries
"factories_location" => "tests/Factories/"
];
Expected upgrade time: 0 minutes
This update is mainly a cleanup. It refactors the abstract Factory class to be more readable and easier to change in the future. No public methods have changed, so if you have not overridden any protected properties or methods, you do not need to make any changes.
$saveMethodRelationships
is now called$withRelationships
.$belongsToRelationships
is now called$forRelationships
.
handleSaveMethodRelationships
is now calledhandleWithRelationship
.handleBelongsToRelatioships
is now calledhandleForRelationship
.getModelDataFromFunctionArguments
is now calledbuildRelationshipData
.getFactoryFor
is now calledgetFactoryNameFromMethodNameOrFail
. It will also now throw anArgumentsNotSatisfiableException
if it cannot find the corresponding factory.addSaveMethodRelationships
is now calledbuildAllWithRelationships
.addBelongsToRelationships
is now calledbuildAllForRelationships
.