Skip to content

Commit

Permalink
Remove laravel/legacy-factories dependency (#2645)
Browse files Browse the repository at this point in the history
[`laravel/legacy-factories`](https://github.com/laravel/legacy-factories)
provides support for the legacy Laravel `factory()` method which was
removed in Laravel 8.x. This PR refactors the last remaining usage of
this legacy method and removes the dependency.
  • Loading branch information
williamjallen authored Jan 3, 2025
1 parent 6cb99d9 commit 3e11a51
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 59 deletions.
2 changes: 1 addition & 1 deletion app/cdash/tests/kwtest/kw_web_tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function createUser(array $fields = [])
$fields['password'] = password_hash($fields['password'], PASSWORD_DEFAULT);
}

$user = factory(User::class)->create($fields);
$user = User::create($fields);
return $user;
}

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"http-interop/http-factory-guzzle": "1.2.0",
"knplabs/github-api": "3.16.0",
"laravel/framework": "10.48.23",
"laravel/legacy-factories": "1.4.0",
"laravel/socialite": "5.16.1",
"laravel/ui": "4.6.0",
"lcobucci/jwt": "5.4.2",
Expand Down
58 changes: 1 addition & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e11a51

Please sign in to comment.