Skip to content

Commit f2c93d6

Browse files
committed
Merge branch '2.x' of github.com:laravel/jetstream into 2.x
2 parents f1a272a + ceeb6a6 commit f2c93d6

File tree

7 files changed

+59
-7
lines changed

7 files changed

+59
-7
lines changed

Diff for: CHANGELOG.md

+51-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/jetstream/compare/v1.6.6...master)
3+
## [Unreleased](https://github.com/laravel/jetstream/compare/v2.1.0...2.x)
4+
5+
6+
## [v2.1.0 (2021-01-12)](https://github.com/laravel/jetstream/compare/v2.0.3...v2.1.0)
7+
8+
### Added
9+
- Add `--composer` option to the install command ([#607](https://github.com/laravel/jetstream/pull/607))
10+
11+
### Changed
12+
- Automatically select API token when it's created ([#589](https://github.com/laravel/jetstream/pull/589))
13+
- Change current team of user when creating a new additional team ([#618](https://github.com/laravel/jetstream/pull/618))
14+
- Make text translatable in confirm-password livewire view ([#628](https://github.com/laravel/jetstream/pull/628))
15+
16+
### Fixed
17+
- Banner should be hidden in default ([#599](https://github.com/laravel/jetstream/pull/599))
18+
- Jetstream ignoring sessions from session connection in config ([#630](https://github.com/laravel/jetstream/pull/630))
19+
20+
21+
## [v2.0.3 (2021-01-06)](https://github.com/laravel/jetstream/compare/v2.0.2...v2.0.3)
22+
23+
### Added
24+
- Allow publishing of missing Inertia files ([#596](https://github.com/laravel/jetstream/pull/596), [b28ee67](https://github.com/laravel/jetstream/commit/b28ee670590312d014448c2c8f2479ec264c64cc))
25+
26+
### Changed
27+
- Make button text in team invitation email translatable ([#598](https://github.com/laravel/jetstream/pull/598))
28+
29+
### Removed
30+
- Remove unused Vue components ([#596](https://github.com/laravel/jetstream/pull/596))
31+
32+
### Fixed
33+
- Make a similar footer section on welcome page ([#602](https://github.com/laravel/jetstream/pull/602))
34+
35+
36+
## [v2.0.2 (2021-01-06)](https://github.com/laravel/jetstream/compare/v2.0.1...v2.0.2)
37+
38+
### Fixed
39+
- Fix test ([d24c41b](https://github.com/laravel/jetstream/commit/d24c41bca5fd69fa369915565a18ac2510b04928))
40+
41+
42+
## [v2.0.1 (2021-01-06)](https://github.com/laravel/jetstream/compare/v2.0.0...v2.0.1)
43+
44+
### Changed
45+
- Make cancel link translatable ([#592](https://github.com/laravel/jetstream/pull/592))
46+
47+
### Fixed
48+
- Inertia Stack Authentication Page logo link update with inertia-link ([#594](https://github.com/laravel/jetstream/pull/594))
49+
50+
51+
## [v2.0.0 (2021-01-05)](https://github.com/laravel/jetstream/compare/v1.6.6...v2.0.0)
52+
53+
A major new Jetstream release. Check out [the announcement post](https://blog.laravel.com/jetstream-20-released).
454

555

656
## [v1.6.6 (2021-01-05)](https://github.com/laravel/jetstream/compare/v1.6.5...v1.6.6)

Diff for: src/Http/Controllers/Inertia/OtherBrowserSessionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function deleteOtherSessionRecords(Request $request)
4343
return;
4444
}
4545

46-
DB::table(config('session.table', 'sessions'))
46+
DB::connection(config('session.connection'))->table(config('session.table', 'sessions'))
4747
->where('user_id', $request->user()->getAuthIdentifier())
4848
->where('id', '!=', $request->session()->getId())
4949
->delete();

Diff for: src/Http/Controllers/Inertia/UserProfileController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function sessions(Request $request)
3737
}
3838

3939
return collect(
40-
DB::table(config('session.table', 'sessions'))
40+
DB::connection(config('session.connection'))->table(config('session.table', 'sessions'))
4141
->where('user_id', $request->user()->getAuthIdentifier())
4242
->orderBy('last_activity', 'desc')
4343
->get()

Diff for: src/Http/Livewire/LogoutOtherBrowserSessionsForm.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function deleteOtherSessionRecords()
7777
return;
7878
}
7979

80-
DB::table(config('session.table', 'sessions'))
80+
DB::connection(config('session.connection'))->table(config('session.table', 'sessions'))
8181
->where('user_id', Auth::user()->getAuthIdentifier())
8282
->where('id', '!=', request()->session()->getId())
8383
->delete();
@@ -95,7 +95,7 @@ public function getSessionsProperty()
9595
}
9696

9797
return collect(
98-
DB::table(config('session.table', 'sessions'))
98+
DB::connection(config('session.connection'))->table(config('session.table', 'sessions'))
9999
->where('user_id', Auth::user()->getAuthIdentifier())
100100
->orderBy('last_activity', 'desc')
101101
->get()

Diff for: stubs/inertia/resources/js/Jetstream/Modal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<portal to="modal">
33
<transition leave-active-class="duration-200">
4-
<div v-show="show" class="fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0">
4+
<div v-show="show" class="fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50">
55
<transition enter-active-class="ease-out duration-300"
66
enter-class="opacity-0"
77
enter-to-class="opacity-100"

Diff for: stubs/livewire/resources/views/auth/confirm-password.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</x-slot>
66

77
<div class="mb-4 text-sm text-gray-600">
8-
This is a secure area of the application. Please confirm your password before continuing.
8+
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
99
</div>
1010

1111
<x-jet-validation-errors class="mb-4" />

Diff for: stubs/tests/RegistrationTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Providers\RouteServiceProvider;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
7+
use Laravel\Jetstream\Jetstream;
78
use Tests\TestCase;
89

910
class RegistrationTest extends TestCase
@@ -24,6 +25,7 @@ public function test_new_users_can_register()
2425
'email' => '[email protected]',
2526
'password' => 'password',
2627
'password_confirmation' => 'password',
28+
'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature(),
2729
]);
2830

2931
$this->assertAuthenticated();

0 commit comments

Comments
 (0)