fix(notifications): point the new login in-app url at account.security
This commit is contained in:
1 parent
09d0159805
commit
1dcb00b39f
3 files changed
+60
-1
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('notification_templates')
|
||||
->where('key', 'new_login_detected')
|
||||
->where('in_app_url', '{{ route("profile.security") }}')
|
||||
->update(['in_app_url' => '{{ route("account.security") }}']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('notification_templates')
|
||||
->where('key', 'new_login_detected')
|
||||
->where('in_app_url', '{{ route("account.security") }}')
|
||||
->update(['in_app_url' => '{{ route("profile.security") }}']);
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user