Skip to content

Commit debdeb6

Browse files
Laravel 10 Mid-Shift (alexjustesen#771)
Co-authored-by: Shift <[email protected]>
1 parent 2fe68c7 commit debdeb6

File tree

8 files changed

+24
-6
lines changed

8 files changed

+24
-6
lines changed

app/Http/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Kernel extends HttpKernel
6060
'can' => \Illuminate\Auth\Middleware\Authorize::class,
6161
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
6262
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
63+
'precognitive' => \Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests::class,
6364
'signed' => \App\Http\Middleware\ValidateSignature::class,
6465
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
6566
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,

app/Models/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22

33
namespace App\Models;
44

5-
// use Illuminate\Contracts\Auth\MustVerifyEmail;
6-
75
use Filament\Models\Contracts\FilamentUser;
86
use Filament\Panel;
7+
// use Illuminate\Contracts\Auth\MustVerifyEmail;
98
use Illuminate\Database\Eloquent\Casts\Attribute;
109
use Illuminate\Database\Eloquent\Factories\HasFactory;
1110
use Illuminate\Foundation\Auth\User as Authenticatable;
@@ -46,6 +45,7 @@ class User extends Authenticatable implements FilamentUser
4645
*/
4746
protected $casts = [
4847
'email_verified_at' => 'datetime',
48+
'password' => 'hashed',
4949
];
5050

5151
/**

app/Providers/AuthServiceProvider.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
namespace App\Providers;
44

55
// use Illuminate\Support\Facades\Gate;
6-
7-
use App\Models\Result;
8-
use App\Policies\ResultPolicy;
96
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
107

118
class AuthServiceProvider extends ServiceProvider
@@ -16,7 +13,7 @@ class AuthServiceProvider extends ServiceProvider
1613
* @var array<class-string, class-string>
1714
*/
1815
protected $policies = [
19-
Result::class => ResultPolicy::class,
16+
//
2017
];
2118

2219
/**

config/broadcasting.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'secret' => env('PUSHER_APP_SECRET'),
3737
'app_id' => env('PUSHER_APP_ID'),
3838
'options' => [
39+
'cluster' => env('PUSHER_APP_CLUSTER'),
3940
'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
4041
'port' => env('PUSHER_PORT', 443),
4142
'scheme' => env('PUSHER_SCHEME', 'https'),

config/cache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'file' => [
5353
'driver' => 'file',
5454
'path' => storage_path('framework/cache/data'),
55+
'lock_path' => storage_path('framework/cache/data'),
5556
],
5657

5758
'memcached' => [

config/mail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'mailers' => [
3737
'smtp' => [
3838
'transport' => 'smtp',
39+
'url' => env('MAIL_URL'),
3940
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
4041
'port' => env('MAIL_PORT', 587),
4142
'encryption' => env('MAIL_ENCRYPTION', 'tls'),

config/queue.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@
7373

7474
],
7575

76+
/*
77+
|--------------------------------------------------------------------------
78+
| Job Batching
79+
|--------------------------------------------------------------------------
80+
|
81+
| The following options configure the database and table that store job
82+
| batching information. These options can be updated to any database
83+
| connection and table which has been defined by your application.
84+
|
85+
*/
86+
87+
'batching' => [
88+
'database' => env('DB_CONNECTION', 'mysql'),
89+
'table' => 'job_batches',
90+
],
91+
7692
/*
7793
|--------------------------------------------------------------------------
7894
| Failed Queue Jobs

lang/en/validation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'string' => 'The :attribute field must be between :min and :max characters.',
3333
],
3434
'boolean' => 'The :attribute field must be true or false.',
35+
'can' => 'The :attribute field contains an unauthorized value.',
3536
'confirmed' => 'The :attribute field confirmation does not match.',
3637
'current_password' => 'The password is incorrect.',
3738
'date' => 'The :attribute field must be a valid date.',

0 commit comments

Comments
 (0)