Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Laravel11 #13

Merged
merged 24 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e2cd47b
Apply Laravel coding style
laravel-shift May 15, 2024
225d61d
Remove default `app` files
laravel-shift May 15, 2024
9aa8b05
Shift core files
laravel-shift May 15, 2024
fa02c21
Streamline config files
laravel-shift May 15, 2024
3974e43
Set new `ENV` variables
laravel-shift May 15, 2024
dfae6e7
Default new `bootstrap/app.php`
laravel-shift May 15, 2024
87b3a38
Re-register HTTP middleware
laravel-shift May 15, 2024
433785a
Consolidate service providers
laravel-shift May 15, 2024
7ea8386
Re-register service providers
laravel-shift May 15, 2024
97859ea
Re-register exception handling
laravel-shift May 15, 2024
b1f79d9
Re-register routes
laravel-shift May 15, 2024
13e8b96
Re-register scheduled commands
laravel-shift May 15, 2024
8a88cda
Bump Composer dependencies
laravel-shift May 15, 2024
32b4fb3
Convert `$casts` property to method
laravel-shift May 15, 2024
0a22aa6
Mark base controller as `abstract`
laravel-shift May 15, 2024
cd64c00
Remove `CreatesApplication` testing trait
laravel-shift May 15, 2024
4970ea6
Shift cleanup
laravel-shift May 15, 2024
8a0ce9b
Added tweaks and fixes post-shift
ssddanbrown May 15, 2024
be3c601
Updated npm deps, Fixed phpstan issues
ssddanbrown May 15, 2024
9f407f3
Fixed styling issues via StyleCI
ssddanbrown May 15, 2024
7266397
Updated GitHub workflows PHP version
ssddanbrown May 15, 2024
2889ce2
Fixed rss feed save issue, removed unrequired command
ssddanbrown May 15, 2024
8e5f5e9
Additional StyleCI fix
ssddanbrown May 15, 2024
d8c1ceb
Tweaked some options and example env
ssddanbrown May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ MAIL_ENCRYPTION=null

# Logging details, don't need to change these to start with
LOG_CHANNEL=stack
LOG_STACK=single
LOG_LEVEL=debug

# Database connection
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- uses: actions/checkout@v2
php-version: '8.3'
- uses: actions/checkout@v4
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- uses: actions/checkout@v2
php-version: '8.3'
- uses: actions/checkout@v4
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Homestead.yaml
npm-debug.log
yarn-error.log
.idea/
.phpactor.json
32 changes: 0 additions & 32 deletions app/Console/Kernel.php

This file was deleted.

29 changes: 0 additions & 29 deletions app/Exceptions/Handler.php

This file was deleted.

4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/AuthenticatedSessionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Http\Controllers\Controller;
use App\Http\Requests\Auth\LoginRequest;
use App\Providers\RouteServiceProvider;
use App\Providers\AppServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
Expand All @@ -29,7 +29,7 @@ public function store(LoginRequest $request): RedirectResponse

$request->session()->regenerate();

return redirect(RouteServiceProvider::HOME);
return redirect(AppServiceProvider::HOME);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/ConfirmablePasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\Providers\AppServiceProvider;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
Expand Down Expand Up @@ -35,6 +35,6 @@ public function store(Request $request): RedirectResponse

$request->session()->put('auth.password_confirmed_at', time());

return redirect()->intended(RouteServiceProvider::HOME);
return redirect()->intended(AppServiceProvider::HOME);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/NewPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ function ($user) use ($request) {
return $status == Password::PASSWORD_RESET
? redirect()->route('login')->with('status', __($status))
: back()->withInput($request->only('email'))
->withErrors(['email' => __($status)]);
->withErrors(['email' => __($status)]);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/PasswordResetLinkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public function store(Request $request): RedirectResponse
return $status == Password::RESET_LINK_SENT
? back()->with('status', __($status))
: back()->withInput($request->only('email'))
->withErrors(['email' => __($status)]);
->withErrors(['email' => __($status)]);
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
abstract class Controller extends BaseController
{
use AuthorizesRequests;
use ValidatesRequests;
Expand Down
66 changes: 0 additions & 66 deletions app/Http/Kernel.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/Authenticate.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/EncryptCookies.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/PreventRequestsDuringMaintenance.php

This file was deleted.

28 changes: 0 additions & 28 deletions app/Http/Middleware/RedirectIfAuthenticated.php

This file was deleted.

18 changes: 0 additions & 18 deletions app/Http/Middleware/TrimStrings.php

This file was deleted.

23 changes: 0 additions & 23 deletions app/Http/Middleware/TrustProxies.php

This file was deleted.

22 changes: 0 additions & 22 deletions app/Http/Middleware/ValidateSignature.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Http/Middleware/VerifyCsrfToken.php

This file was deleted.

Loading