Skip to content

Commit b33aa1f

Browse files
authored
Merge pull request #67 from spatie/shift-115810
Laravel 11.x Shift
2 parents 6fb0b4d + 2ec0006 commit b33aa1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+155
-2043
lines changed

.env.example

+16-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@ APP_NAME=Mailcoach
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
5+
APP_TIMEZONE=UTC
56
APP_URL=http://localhost
67

8+
APP_LOCALE=en
9+
APP_FALLBACK_LOCALE=en
10+
APP_FAKER_LOCALE=en_US
11+
12+
APP_MAINTENANCE_DRIVER=file
13+
APP_MAINTENANCE_STORE=database
14+
15+
BCRYPT_ROUNDS=12
16+
717
LOG_CHANNEL=stack
18+
LOG_STACK=single
819
LOG_DEPRECATIONS_CHANNEL=null
920
LOG_LEVEL=debug
1021

@@ -15,12 +26,15 @@ DB_DATABASE=mailcoach
1526
DB_USERNAME=root
1627
DB_PASSWORD=
1728

18-
BROADCAST_DRIVER=log
19-
CACHE_DRIVER=file
29+
BROADCAST_CONNECTION=log
30+
CACHE_STORE=file
2031
FILESYSTEM_DISK=local
2132
QUEUE_CONNECTION=redis
2233
SESSION_DRIVER=file
2334
SESSION_LIFETIME=120
35+
SESSION_ENCRYPT=false
36+
SESSION_PATH=/
37+
SESSION_DOMAIN=null
2438

2539
MEMCACHED_HOST=127.0.0.1
2640

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ public/vendor
2020
public/js/filament
2121
public/css/filament
2222
database/migrations
23+
24+
/.phpunit.cache

app/Console/Commands/MakeUserCommand.php

+13-14
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
namespace App\Console\Commands;
44

5-
use App\User;
5+
use App\Models\User;
66
use Illuminate\Console\Command;
7-
use Illuminate\Contracts\Auth\Authenticatable;
87
use Illuminate\Support\Facades\Hash;
98
use Illuminate\Support\Facades\Validator;
109

@@ -29,20 +28,20 @@ protected function requestData(): array
2928
{
3029
return [
3130
'name' => $this->option('username') ?? text(
32-
label: 'Username',
33-
required: true,
34-
),
31+
label: 'Username',
32+
required: true,
33+
),
3534

3635
'email' => $this->option('email') ?? text(
37-
label: 'Email address',
38-
required: true,
39-
validate: fn (string $value) => match (true) {
40-
! filter_var($value, FILTER_VALIDATE_EMAIL) => 'The email address must be valid.',
41-
User::where('email', $value)->exists() => 'A user with this email address already exists.',
42-
! is_null($error = $this->verifyDns($value)) => $error,
43-
default => null,
44-
},
45-
),
36+
label: 'Email address',
37+
required: true,
38+
validate: fn (string $value) => match (true) {
39+
! filter_var($value, FILTER_VALIDATE_EMAIL) => 'The email address must be valid.',
40+
User::where('email', $value)->exists() => 'A user with this email address already exists.',
41+
! is_null($error = $this->verifyDns($value)) => $error,
42+
default => null,
43+
},
44+
),
4645

4746
'password' => Hash::make($this->option('password') ?? password(
4847
label: 'Password',

app/Console/Kernel.php

-41
This file was deleted.

app/Http/Controllers/Auth/ForgotPasswordController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
class ForgotPasswordController
1212
{
13-
use SendsPasswordResetEmails;
1413
use AuthorizesRequests;
1514
use DispatchesJobs;
15+
use SendsPasswordResetEmails;
1616
use ValidatesRequests;
1717

1818
public function showLinkRequestForm()

app/Http/Controllers/Auth/LoginController.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Illuminate\Foundation\Auth\AuthenticatesUsers;
77
use Illuminate\Foundation\Bus\DispatchesJobs;
88
use Illuminate\Foundation\Validation\ValidatesRequests;
9-
use Illuminate\Support\Facades\Auth;
109

1110
class LoginController
1211
{

app/Http/Controllers/Auth/ResetPasswordController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
class ResetPasswordController
1212
{
13-
use ResetsPasswords;
1413
use AuthorizesRequests;
1514
use DispatchesJobs;
15+
use ResetsPasswords;
1616
use ValidatesRequests;
1717

1818
public function showResetForm(Request $request)

app/Http/Controllers/Controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Foundation\Validation\ValidatesRequests;
77
use Illuminate\Routing\Controller as BaseController;
88

9-
class Controller extends BaseController
9+
abstract class Controller extends BaseController
1010
{
1111
use AuthorizesRequests, ValidatesRequests;
1212
}

app/Http/Kernel.php

-68
This file was deleted.

app/Http/Middleware/Authenticate.php

-17
This file was deleted.

app/Http/Middleware/EncryptCookies.php

-17
This file was deleted.

app/Http/Middleware/PreventRequestsDuringMaintenance.php

-17
This file was deleted.

app/Http/Middleware/RedirectIfAuthenticated.php

-30
This file was deleted.

app/Http/Middleware/TrimStrings.php

-19
This file was deleted.

app/Http/Middleware/TrustHosts.php

-20
This file was deleted.

app/Http/Middleware/TrustProxies.php

-28
This file was deleted.

0 commit comments

Comments
 (0)