-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Laravel #89
Updated Laravel #89
Conversation
aizlee
commented
Aug 15, 2024
- updated Laravel to 11 version
- implemeted QueueEnum
- implemented ModelTestState
@@ -83,25 +84,25 @@ public function logout(LogoutRequest $request): Response | |||
return response('', Response::HTTP_NO_CONTENT)->withCookie($tokenCookie); | |||
} | |||
|
|||
public function forgotPassword(ForgotPasswordRequest $request, UserService $service): Response | |||
public function forgotPassword(UserService $service, ForgotPasswordRequest $request): Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert this change
app/Services/UserService.php
Outdated
->update( | ||
where:['id' => $user->id], | ||
data: ['password' => Hash::make($password)] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->update( | |
where:['id' => $user->id], | |
data: ['password' => Hash::make($password)] | |
) | |
->update($user->id, [ | |
'password' => Hash::make($password), | |
]) |
artisan
Outdated
| | ||
*/ | ||
// Register the Composer autoloader... | ||
require __DIR__.'/vendor/autoload.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require __DIR__.'/vendor/autoload.php'; | |
require __DIR__ . '/vendor/autoload.php'; |
artisan
Outdated
$status = (require_once __DIR__.'/bootstrap/app.php') | ||
->handleCommand(new ArgvInput); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$status = (require_once __DIR__.'/bootstrap/app.php') | |
->handleCommand(new ArgvInput); | |
$status = (require_once __DIR__ . '/bootstrap/app.php')->handleCommand(new ArgvInput); |
bootstrap/app.php
Outdated
web: __DIR__.'/../routes/web.php', | ||
api: __DIR__.'/../routes/api.php', | ||
commands: __DIR__.'/../routes/console.php', | ||
channels: __DIR__.'/../routes/channels.php', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
web: __DIR__.'/../routes/web.php', | |
api: __DIR__.'/../routes/api.php', | |
commands: __DIR__.'/../routes/console.php', | |
channels: __DIR__.'/../routes/channels.php', | |
web: __DIR__ . '/../routes/web.php', | |
api: __DIR__ . '/../routes/api.php', | |
commands: __DIR__ . '/../routes/console.php', | |
channels: __DIR__ . '/../routes/channels.php', |
tests/AuthTest.php
Outdated
$this->assertDatabaseMissing( | ||
table: 'password_reset_tokens', | ||
data: [ | ||
'email' => '[email protected]', | ||
], | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->assertDatabaseMissing( | |
table: 'password_reset_tokens', | |
data: [ | |
'email' => '[email protected]', | |
], | |
); | |
$this->assertDatabaseMissing('password_reset_tokens', [ | |
'email' => '[email protected]', | |
]); |
tests/UserTest.php
Outdated
|
||
$response->assertOk(); | ||
|
||
$this->assertEqualsFixture('user_created.json', $response->json()); | ||
|
||
$this->assertDatabaseHas('users', $this->getJsonFixture('user_created_database.json')); | ||
self::$userState->assertChangesEqualsFixture('user_created__users_state.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::$userState->assertChangesEqualsFixture('user_created__users_state.json'); | |
self::$userState->assertChangesEqualsFixture('user_created_users_state.json'); |
tests/UserTest.php
Outdated
|
||
$response->assertNoContent(); | ||
|
||
$this->assertDatabaseHas('users', $data); | ||
self::$userState->assertChangesEqualsFixture('user_updated__users_state.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::$userState->assertChangesEqualsFixture('user_updated__users_state.json'); | |
self::$userState->assertChangesEqualsFixture('user_updated_users_state.json'); |
tests/UserTest.php
Outdated
|
||
$response->assertNoContent(); | ||
|
||
$this->assertDatabaseHas('users', $data); | ||
self::$userState->assertChangesEqualsFixture('profile_updated__users_state.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::$userState->assertChangesEqualsFixture('profile_updated__users_state.json'); | |
self::$userState->assertChangesEqualsFixture('profile_updated_users_state.json'); |
tests/UserTest.php
Outdated
$this->assertDatabaseMissing('users', [ | ||
'id' => 2, | ||
]); | ||
self::$userState->assertChangesEqualsFixture('user_deleted__users_state.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::$userState->assertChangesEqualsFixture('user_deleted__users_state.json'); | |
self::$userState->assertChangesEqualsFixture('user_deleted_users_state.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check the all conversations was resolved
…-empty-project into update-laravel-structure