Update to laravel 10.3.2

This commit is contained in:
Kevin MacMartin 2024-01-12 22:03:27 -05:00
parent e4a4dbbedb
commit bc9e607c4a
11 changed files with 705 additions and 577 deletions

View file

@ -1 +1 @@
f419821bd8cbc736ac6f9b2fce75a4e373a4b49f 1a4d1dc81f7924259885250d011ffad24728cd86

View file

@ -12,7 +12,7 @@
"intervention/image": "^2.7.2", "intervention/image": "^2.7.2",
"laravel/framework": "^10.10", "laravel/framework": "^10.10",
"laravel/helpers": "^1.6", "laravel/helpers": "^1.6",
"laravel/sanctum": "^3.2", "laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8", "laravel/tinker": "^2.8",
"laravel/ui": "^4.2.1", "laravel/ui": "^4.2.1",
"phpoffice/phpspreadsheet": "^1.28.0", "phpoffice/phpspreadsheet": "^1.28.0",

1207
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,8 @@ return [
*/ */
'bcrypt' => [ 'bcrypt' => [
'rounds' => env('BCRYPT_ROUNDS', 10), 'rounds' => env('BCRYPT_ROUNDS', 12),
'verify' => true,
], ],
/* /*
@ -47,6 +48,7 @@ return [
'memory' => 65536, 'memory' => 65536,
'threads' => 1, 'threads' => 1,
'time' => 4, 'time' => 4,
'verify' => true,
], ],
]; ];

View file

@ -29,7 +29,7 @@ return [
| mailers below. You are free to add additional mailers as required. | mailers below. You are free to add additional mailers as required.
| |
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "log", "array", "failover" | "postmark", "log", "array", "failover", "roundrobin"
| |
*/ */
@ -50,15 +50,16 @@ return [
'transport' => 'ses', 'transport' => 'ses',
], ],
'mailgun' => [ 'postmark' => [
'transport' => 'mailgun', 'transport' => 'postmark',
// 'message_stream_id' => null,
// 'client' => [ // 'client' => [
// 'timeout' => 5, // 'timeout' => 5,
// ], // ],
], ],
'postmark' => [ 'mailgun' => [
'transport' => 'postmark', 'transport' => 'mailgun',
// 'client' => [ // 'client' => [
// 'timeout' => 5, // 'timeout' => 5,
// ], // ],
@ -85,6 +86,14 @@ return [
'log', 'log',
], ],
], ],
'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
],
], ],
/* /*

View file

@ -41,13 +41,28 @@ return [
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This value controls the number of minutes until an issued token will be | This value controls the number of minutes until an issued token will be
| considered expired. If this value is null, personal access tokens do | considered expired. This will override any values set in the token's
| not expire. This won't tweak the lifetime of first-party sessions. | "expires_at" attribute, but first-party sessions are not affected.
| |
*/ */
'expiration' => null, 'expiration' => null,
/*
|--------------------------------------------------------------------------
| Token Prefix
|--------------------------------------------------------------------------
|
| Sanctum can prefix new tokens in order to take advantage of numerous
| security scanning initiatives maintained by open source platforms
| that notify developers if they commit tokens into repositories.
|
| See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning
|
*/
'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Sanctum Middleware | Sanctum Middleware
@ -60,8 +75,9 @@ return [
*/ */
'middleware' => [ 'middleware' => [
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
], ],
]; ];

View file

@ -198,4 +198,17 @@ return [
'same_site' => 'lax', 'same_site' => 'lax',
/*
|--------------------------------------------------------------------------
| Partitioned Cookies
|--------------------------------------------------------------------------
|
| Setting this value to true will tie the cookie to the top-level site for
| a cross-site context. Partitioned cookies are accepted by the browser
| when flagged "secure" and the Same-Site attribute is set to "none".
|
*/
'partitioned' => false,
]; ];

View file

@ -3,6 +3,7 @@
namespace Database\Factories; namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str; use Illuminate\Support\Str;
/** /**
@ -10,6 +11,11 @@ use Illuminate\Support\Str;
*/ */
class UserFactory extends Factory class UserFactory extends Factory
{ {
/**
* The current password being used by the factory.
*/
protected static ?string $password;
/** /**
* Define the model's default state. * Define the model's default state.
* *
@ -21,7 +27,7 @@ class UserFactory extends Factory
'name' => fake()->name(), 'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(), 'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(), 'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10), 'remember_token' => Str::random(10),
]; ];
} }

View file

@ -24,6 +24,7 @@
<!-- <env name="DB_CONNECTION" value="sqlite"/> --> <!-- <env name="DB_CONNECTION" value="sqlite"/> -->
<!-- <env name="DB_DATABASE" value=":memory:"/> --> <!-- <env name="DB_DATABASE" value=":memory:"/> -->
<env name="MAIL_MAILER" value="array"/> <env name="MAIL_MAILER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="QUEUE_CONNECTION" value="sync"/> <env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/>
<env name="TELESCOPE_ENABLED" value="false"/> <env name="TELESCOPE_ENABLED" value="false"/>

View file

@ -21,7 +21,7 @@ A Hypothetical website template for bootstrapping new projects.
* Gsap * Gsap
* Gulp * Gulp
* Jquery * Jquery
* Laravel 10.2.5 * Laravel 10.3.2
* Sass * Sass
* Vue 3 (Optional) * Vue 3 (Optional)