This guide documents breaking changes to Request Factories and details how to make the required changes in your application.
3.0.0
Estimated upgrade time: less than 2 minutes.
Upgrade to PHP 8.2
Likelihood of impact: high.
The minimum PHP version for Request Factories is not 8.2. If you are not yet running PHP 8.2, you are
of course still able to use v2 of Request Factories.
Remove HasFactory trait
Likelihood of impact: high.
One of the biggest gripes with Request Factories was that if you wanted to use the HasFactory trait, you had to install this package as a production dependency.
In order to fix that, we've removed the HasFactory trait and achieved the same functionality using
macros on the FormRequest instead.
To upgrade, simply remove the HasFactory trait from any FormRequest classes that you previously added it to.
// Before
use Illuminate\Foundation\Http\FormRequest;
use Worksome\RequestFactories\Concerns\HasFactory;
class MyFormRequest extends FormRequest
{
use HasFactory;
}
// After
use Illuminate\Foundation\Http\FormRequest;
class MyFormRequest extends FormRequest
{
}
So long as you haven't done any really "out there" customisation, your tests should continue to work exactly as they did before!
2.0.0
Estimated upgrade time: less than 2 minutes.
state method dot notation
... (truncated)
Commits
70e2bce Merge pull request #50 from worksome/feature/laravel-11
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps worksome/request-factories from 2.6.0 to 3.3.0.
Release notes
Sourced from worksome/request-factories's releases.
Changelog
Sourced from worksome/request-factories's changelog.
... (truncated)
Upgrade guide
Sourced from worksome/request-factories's upgrade guide.
... (truncated)
Commits
70e2bce
Merge pull request #50 from worksome/feature/laravel-11137d986
chore(deps): add support for Laravel 11108ac6a
Merge pull request #49 from parth391/mainb577465
chore(deps-dev): updateworksome/coding-style
f39bb69
Upgrade to larastan/larastan4822b00
Merge pull request #48 from SuperDJ/patch-1c0ba3d0
Add PHP 8.3 to test matrix53cbe28
Merge pull request #47 from worksome/docs/typo5c15091
docs: resolve namespace for RequestFactory classab60978
chore(changelog): Update CHANGELOGYou can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show