Skip to content

Commit ce3b1f3

Browse files
new job to delete user threads
1 parent 5179b00 commit ce3b1f3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/Jobs/DeleteUserThreads.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace App\Jobs;
4+
5+
use App\Models\User;
6+
7+
final class DeleteUserThreads
8+
{
9+
public function __construct(private User $user) {}
10+
11+
public function handle(): void
12+
{
13+
$this->user->deleteThreads();
14+
}
15+
}

0 commit comments

Comments
 (0)