From d24f92ed4c538aee2f63774cc098aa3e672b57fe Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 18 Jul 2024 07:03:14 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- config/app.php | 2 -- config/cache.php | 2 +- config/database.php | 3 +++ config/logging.php | 7 ------- config/mail.php | 17 +++++++++++++++-- config/services.php | 4 ++++ config/session.php | 2 +- tests/Browser/IndexFilterTest.php | 4 ++-- 8 files changed, 26 insertions(+), 15 deletions(-) diff --git a/config/app.php b/config/app.php index 01479a2f..c2ab5687 100644 --- a/config/app.php +++ b/config/app.php @@ -63,8 +63,6 @@ 'mix_url' => env('MIX_ASSET_URL'), - 'mix_url' => env('MIX_ASSET_URL'), - /* |-------------------------------------------------------------------------- | Application Timezone diff --git a/config/cache.php b/config/cache.php index 8aa98219..96c8f191 100644 --- a/config/cache.php +++ b/config/cache.php @@ -26,7 +26,7 @@ | well as their drivers. You may even define multiple stores for the | same cache driver to group types of items stored in your caches. | - | Supported drivers: "apc", "array", "database", "file", "memcached", + | Supported drivers: "array", "database", "file", "memcached", | "redis", "dynamodb", "octane", "null" | */ diff --git a/config/database.php b/config/database.php index 8e935e25..347996c0 100644 --- a/config/database.php +++ b/config/database.php @@ -37,6 +37,9 @@ 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + 'busy_timeout' => null, + 'journal_mode' => null, + 'synchronous' => null, ], 'mysql' => [ diff --git a/config/logging.php b/config/logging.php index b1783237..8a366fa3 100644 --- a/config/logging.php +++ b/config/logging.php @@ -72,13 +72,6 @@ 'replace_placeholders' => true, ], - 'deprecations' => [ - 'driver' => 'single', - 'path' => storage_path('logs/deprecations.log'), - 'level' => env('LOG_LEVEL', 'debug'), - 'replace_placeholders' => true, - ], - 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), diff --git a/config/mail.php b/config/mail.php index a4b9780e..ad513854 100644 --- a/config/mail.php +++ b/config/mail.php @@ -30,7 +30,8 @@ | your mailers below. You may also add additional mailers if needed. | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", - | "postmark", "log", "array", "failover", "roundrobin" + | "postmark", "resend", "log", "array", + | "failover", "roundrobin" | */ @@ -54,12 +55,16 @@ 'postmark' => [ 'transport' => 'postmark', - // 'message_stream_id' => null, + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), // 'client' => [ // 'timeout' => 5, // ], ], + 'resend' => [ + 'transport' => 'resend', + ], + 'sendmail' => [ 'transport' => 'sendmail', 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), @@ -82,6 +87,14 @@ ], ], + 'roundrobin' => [ + 'transport' => 'roundrobin', + 'mailers' => [ + 'ses', + 'postmark', + ], + ], + ], /* diff --git a/config/services.php b/config/services.php index 6bb68f6a..27a36175 100644 --- a/config/services.php +++ b/config/services.php @@ -24,6 +24,10 @@ 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], + 'resend' => [ + 'key' => env('RESEND_KEY'), + ], + 'slack' => [ 'notifications' => [ 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), diff --git a/config/session.php b/config/session.php index 6452eb72..ad357426 100644 --- a/config/session.php +++ b/config/session.php @@ -191,7 +191,7 @@ | | This option determines how your cookies behave when cross-site requests | take place, and can be used to mitigate CSRF attacks. By default, we - | will set this value to "lax" since this is a secure default value. + | will set this value to "lax" to permit secure cross-site requests. | | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value | diff --git a/tests/Browser/IndexFilterTest.php b/tests/Browser/IndexFilterTest.php index e99a4b50..bf6d2df1 100644 --- a/tests/Browser/IndexFilterTest.php +++ b/tests/Browser/IndexFilterTest.php @@ -155,7 +155,7 @@ public function test_date_filter_can_be_selected_and_reset() ->pause(500) ->elsewhere('', function ($browser) { $browser->assertVisible('@filter-per-page') - ->type('input[dusk="Created-date-filter"]', '') + ->type('@Created-date-filter', '') ->assertVisible('@filter-per-page'); }) ->waitForTable() @@ -206,7 +206,7 @@ public function test_date_filter_interactions_does_not_close_filter_dropdown() ->pause(500) ->elsewhere('', function ($browser) { $browser->assertVisible('@filter-per-page') - ->type('input[dusk="Created-date-filter"]', '') + ->type('@Created-date-filter', '') ->assertVisible('@filter-per-page'); }) ->closeCurrentDropdown()