Nuno Maduro
73cf5bc5bc
[10.x] Fixes missing property description ( #6275 )
...
* Fixes missing property description
* Update UserFactory.php
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-11-20 09:20:28 -06:00
Tim MacDonald
7fe97a165a
[10.x] Update fixture hash to match testing cost ( #6259 )
...
* Update fixture hash to match testing cost
* Conditionally use lower cost in tests
* use hash facade and memoize
* remove import
---------
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2023-10-24 09:11:07 -05:00
Julius Kiekbusch
8e5f0e5d00
Use 12 bcrypt rounds for password in UserFactory ( #6247 )
2023-09-22 13:03:48 -05:00
Ngô Quốc Đạt
330995f6bd
Remove redundant @return
docblock in UserFactory ( #6119 )
2023-02-18 14:54:42 -06:00
Taylor Otwell
a28ad2966d
rename password reset tokens table in skeleton
2023-01-30 16:53:14 -06:00
Dries Vints
8f5346e3af
Merge branch '9.x'
...
# Conflicts:
# CHANGELOG.md
2023-01-10 17:13:01 +01:00
Nuno Maduro
55af5469c3
[10.x] Uses PHP Native Type Declarations 🐘 ( #6010 )
...
* Adds basic typing around method's arguments and return types
* Adds missing `closure` type
* Adds typing on tests
* Fixes `RedirectIfAuthenticated`
* Fixes `Authenticate`
* Improves `RedirectIfAuthenticated` types
* Fixes user factory `unverified` return type
2023-01-03 10:35:24 +01:00
Andrew Brown
091aa7d882
switch email to a primary key ( #6064 )
...
switching from a normal index here to a primary index works the same except for adding a `UNIQUE` constraint.
The `DatabaseTokenRepository` deletes existing records with an email first, before creating a new one, so this additional constraint will be okay.
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php#L88
2023-01-02 08:45:35 -06:00
Martin Ro
ad219e82aa
Make email unique ( #5978 )
...
When seeding large amounts of users there is a chance for a duplicate entry SQL error because the email column is unique. 64e0175398/database/migrations/2014_10_12_000000_create_users_table.php (L19)
2022-09-02 09:10:54 -05:00
Taylor Otwell
7b17f5f326
use short closure
2022-08-20 12:22:43 -05:00
suyar
6e1103180b
Update laravel/sanctum version ( #5957 )
2022-07-29 08:01:11 -05:00
Nuno Maduro
fa5e54a2ab
[9.x] Uses laravel/pint
for styling ( #5945 )
...
* Uses `laravel/pint` for styling
* Makes `.styleci.yml` ignored on export
* Update composer.json
Co-authored-by: Dries Vints <dries@vints.io>
2022-07-15 08:38:49 -05:00
Taylor Otwell
0c3d1fabe5
use global functino
2022-06-22 11:02:43 -05:00
Dries Vints
5c5a300bfd
[9.x] Add specific test user in seeder ( #5879 )
...
* Update DatabaseSeeder.php
* formatting
Co-authored-by: Taylor Otwell <taylor@laravel.com>
2022-05-05 08:53:49 -05:00
Choraimy Kroonstuiver
6479a60e95
Improve typing on user factory
2022-02-09 21:24:35 +01:00
Craig Morris
1db81e7e8c
use FQN
2022-01-21 12:32:08 +00:00
Craig Morris
4c94086856
switch to extends
2022-01-21 12:21:38 +00:00
Craig Morris
7bff7c6c61
add type to UserFactory for generic parent class
2022-01-21 12:12:45 +00:00
Nuno Maduro
2a88c174b6
Imports without model events trait on seeds ( #5745 )
2021-12-10 07:16:58 -06:00
Dries Vints
d54907c27d
Merge branch '8.x'
...
# Conflicts:
# CHANGELOG.md
# composer.json
2021-10-26 17:22:00 +02:00
Nuno Maduro
9915831d22
Guess database factory model by default ( #5713 )
2021-10-22 13:11:06 -05:00
Taylor Otwell
bdcb9681a6
fix conflicts
2021-10-02 10:47:56 -05:00
Markus Machatschek
2c644455da
Use anonymous migration for personal_access_tokens table ( #5698 )
...
* Use new migration class name style for personal_access_tokens table
* Update 2019_12_14_000001_create_personal_access_tokens_table.php
2021-09-29 09:44:21 -05:00
JuanDMeGon
5f7395b289
Keeping access tokens migration id consistent ( #5691 )
...
This is just a tiny "fix," using id(); to be consistent with the other migrations already included in the framework.
2021-09-28 08:03:31 -05:00
Dries Vints
018bb3c157
Merge branch '8.x'
...
# Conflicts:
# composer.json
2021-08-12 15:39:10 +02:00
Taylor Otwell
226d1bfc3c
[8.x] Sanctum ( #5663 )
...
* initial sanctum poc
* add files
* remove token
2021-08-11 13:44:34 -05:00
Dries Vints
4ce641d571
Apply fixes from StyleCI ( #5607 )
2021-05-07 05:54:25 -05:00
Dries Vints
dd8111a32d
Merge branch '8.x'
...
# Conflicts:
# CHANGELOG.md
# tests/Feature/ExampleTest.php
# tests/Unit/ExampleTest.php
2021-04-20 18:14:47 +02:00
Roger Vilà
e109ac9022
Update .gitignore ( #5593 )
2021-04-16 08:13:56 -05:00
Dries Vints
6746f4ec12
[9.x] Implement anonymous migrations ( #5590 )
...
* Implement anonymous migrations
* Apply fixes from StyleCI (#5589 )
2021-04-15 06:53:35 -05:00
JuanDMeGon
0e8e9a0727
[8.x] Using faker method instead of properties ( #5583 )
...
After Faker PHP 1.14 using properties is deprecated and is recommended to use methods instead.
2021-04-13 07:28:01 -05:00
Taylor Otwell
ebf2646c34
wip
2021-02-16 10:58:35 -06:00
Jared Lewis
eaf7289523
Add unverified state to UserFactory ( #5533 )
2021-02-09 14:52:23 -06:00
Salim Djerbouh
ca30159cab
fully qualified user model in seeder ( #5406 )
...
makes it easy to just uncomment when tinkering around
2020-09-13 09:17:54 -05:00
Taylor Otwell
710d472d76
models directory
2020-08-20 15:31:07 -05:00
Taylor Otwell
d6eda444a7
update defaults
2020-08-19 09:32:54 -05:00
Dries Vints
a429eab2d4
Merge branch 'master' into develop
2020-06-16 14:56:56 +02:00
Taylor Otwell
9e5ba571a6
add password reset migration
2020-05-28 10:08:01 -05:00
Taylor Otwell
c3f7dd9af8
fix doc block
2020-05-18 10:20:51 -05:00
Taylor Otwell
fac16a7e26
Update DatabaseSeeder.php
...
Update example.
2020-04-21 14:47:10 -05:00
Taylor Otwell
2149e8c24c
update seeders
2020-04-21 14:44:37 -05:00
Taylor Otwell
5f6f5c929b
add model
2020-04-21 12:41:27 -05:00
Taylor Otwell
b9af2b2294
Use new factories
...
Use the new factories provided in 8.x
2020-04-21 10:12:39 -05:00
ice
b26aaff210
consistent filename
2020-03-28 09:53:47 +08:00
Graham Campbell
7e5a915485
Merge branch 'master' into develop
2019-12-31 12:26:17 +00:00
Graham Campbell
5df3b7b1fe
Revert "Apply fixes from StyleCI ( #5006 )"
...
This reverts commit 50176732d66b197de62d5567b79fc77f63e2cfbd.
2019-12-31 12:21:39 +00:00
Taylor Otwell
e6471a6f2e
Apply fixes from StyleCI ( #5186 )
2019-12-20 14:15:04 -06:00
Taylor Otwell
f13aef8733
move var
2019-12-20 14:14:43 -06:00
Taylor Otwell
13e43893ba
remove auth migration that is now in laravel/ui
2019-12-20 13:58:16 -06:00
Dries Vints
2e2be97c26
Implement new primary key syntax ( #5147 )
2019-11-01 08:53:14 -04:00