Skip to content

Commit 305bbe3

Browse files
authored
Merge branch 'develop' into usePHPUNIT
2 parents 5735754 + d6ef25b commit 305bbe3

31 files changed

+106
-113
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
*.md diff=markdown
77
*.php diff=php
88

9-
/.github export-ignore
109
CHANGELOG.md export-ignore
11-
.styleci.yml export-ignore
10+
README.md export-ignore

.github/workflows/lint.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- develop
1111
- main
1212

13+
permissions:
14+
contents: write
15+
1316
jobs:
1417
quality:
1518
runs-on: ubuntu-latest
@@ -19,7 +22,7 @@ jobs:
1922
- name: Setup PHP
2023
uses: shivammathur/setup-php@v2
2124
with:
22-
php-version: '8.2'
25+
php-version: '8.4'
2326

2427
- name: Install Dependencies
2528
run: |
@@ -35,12 +38,12 @@ jobs:
3538
- name: Frontend Lint
3639
run: npm run lint
3740

38-
- name: Commit changes
41+
- name: Commit Changes
3942
uses: stefanzweifel/git-auto-commit-action@v5
4043
with:
4144
commit_message: fix code style
4245
commit_options: '--no-verify'
4346

44-
# We need to run PHPStan after commiting changes as it does not auto-fix errors.
47+
# We need to run PHPStan after commiting changes as it does not auto-fix errors...
4548
- name: PHPStan
4649
run: ./vendor/bin/phpstan

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
2323
with:
24-
php-version: 8.2
24+
php-version: 8.4
2525
tools: composer:v2
2626
coverage: xdebug
2727

28-
- name: Setup Node.js
28+
- name: Setup Node
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: '18'
31+
node-version: '22'
3232
cache: 'npm'
3333

34-
- name: Install Node dependencies
34+
- name: Install Node Dependencies
3535
run: npm ci
3636

37-
- name: Build assets
37+
- name: Build Assets
3838
run: npm run build
3939

4040
- name: Create SQLite Database

.gitignore

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1+
.DS_Store
2+
.env
3+
.env.backup
4+
.env.production
5+
.phpactor.json
6+
.phpunit.result.cache
7+
/.fleet
8+
/.idea
9+
/.nova
110
/.phpunit.cache
11+
/.vscode
12+
/.zed
213
/bootstrap/ssr
314
/node_modules
415
/public/build
@@ -7,19 +18,8 @@
718
/storage/*.key
819
/storage/pail
920
/vendor
10-
.DS_Store
11-
.env
12-
.env.backup
13-
.env.production
14-
.phpactor.json
15-
.phpunit.result.cache
21+
auth.json
1622
Homestead.json
1723
Homestead.yaml
18-
auth.json
1924
npm-debug.log
2025
yarn-error.log
21-
/.fleet
22-
/.idea
23-
/.nova
24-
/.vscode
25-
/.zed

app/Http/Controllers/Auth/AuthenticatedSessionController.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
class AuthenticatedSessionController extends Controller
1515
{
1616
/**
17-
* Display the login view.
17+
* Show the login page.
1818
*/
19-
public function create(): Response
19+
public function create(Request $request): Response
2020
{
2121
return Inertia::render('auth/login', [
2222
'canResetPassword' => Route::has('password.request'),
23-
'status' => session('status'),
23+
'status' => $request->session()->get('status'),
2424
]);
2525
}
2626

@@ -44,7 +44,6 @@ public function destroy(Request $request): RedirectResponse
4444
Auth::guard('web')->logout();
4545

4646
$request->session()->invalidate();
47-
4847
$request->session()->regenerateToken();
4948

5049
return redirect('/');

app/Http/Controllers/Auth/ConfirmablePasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class ConfirmablePasswordController extends Controller
1414
{
1515
/**
16-
* Show the confirm password view.
16+
* Show the confirm password page.
1717
*/
1818
public function show(): Response
1919
{

app/Http/Controllers/Auth/EmailVerificationPromptController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
class EmailVerificationPromptController extends Controller
1212
{
1313
/**
14-
* Display the email verification prompt.
14+
* Show the email verification prompt page.
1515
*/
16-
public function __invoke(Request $request): RedirectResponse|Response
16+
public function __invoke(Request $request): Response|RedirectResponse
1717
{
1818
return $request->user()->hasVerifiedEmail()
1919
? redirect()->intended(route('dashboard', absolute: false))
20-
: Inertia::render('auth/verify-email', ['status' => session('status')]);
20+
: Inertia::render('auth/verify-email', ['status' => $request->session()->get('status')]);
2121
}
2222
}

app/Http/Controllers/Auth/NewPasswordController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class NewPasswordController extends Controller
1818
{
1919
/**
20-
* Display the password reset view.
20+
* Show the password reset page.
2121
*/
2222
public function create(Request $request): Response
2323
{
@@ -59,11 +59,11 @@ function ($user) use ($request) {
5959
// the application's home authenticated view. If there is an error we can
6060
// redirect them back to where they came from with their error message.
6161
if ($status == Password::PasswordReset) {
62-
return redirect()->route('login')->with('status', __($status));
62+
return to_route('login')->with('status', __($status));
6363
}
6464

6565
throw ValidationException::withMessages([
66-
'email' => [trans($status)],
66+
'email' => [__($status)],
6767
]);
6868
}
6969
}

app/Http/Controllers/Auth/PasswordResetLinkController.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
class PasswordResetLinkController extends Controller
1313
{
1414
/**
15-
* Display the password reset link request view.
15+
* Show the password reset link request page.
1616
*/
17-
public function create(): Response
17+
public function create(Request $request): Response
1818
{
1919
return Inertia::render('auth/forgot-password', [
20-
'status' => session('status'),
20+
'status' => $request->session()->get('status'),
2121
]);
2222
}
2323

@@ -32,13 +32,10 @@ public function store(Request $request): RedirectResponse
3232
'email' => 'required|email',
3333
]);
3434

35-
// We will send the password reset link to this user if the email exists
3635
Password::sendResetLink(
3736
$request->only('email')
3837
);
3938

40-
// We want to always return a 200 response, even if the user is not found. This is a
41-
// security measure to prevent email accounts from being discovered
42-
return back()->with('status', __('If that email exists in our system, a reset link was sent.'));
39+
return back()->with('status', __('If an account exists with that email, you’ll receive a reset link shortly.'));
4340
}
4441
}

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class RegisteredUserController extends Controller
1717
{
1818
/**
19-
* Display the registration view.
19+
* Show the registration page.
2020
*/
2121
public function create(): Response
2222
{
@@ -46,6 +46,6 @@ public function store(Request $request): RedirectResponse
4646

4747
Auth::login($user);
4848

49-
return redirect(route('dashboard', absolute: false));
49+
return to_route('dashboard');
5050
}
5151
}

0 commit comments

Comments
 (0)