Updated Rules

This commit is contained in:
Will Browning
2024-06-26 11:43:30 +01:00
parent 5e186b4f08
commit bc626e80bf
20 changed files with 1316 additions and 757 deletions

View File

@@ -41,7 +41,7 @@ class EmailUsersWithTokenExpiringSoon extends Command
*/
public function handle()
{
User::with(['defaultUsername', 'defaultRecipient'])
User::with(['defaultUsername', 'defaultRecipient', 'tokens'])
->whereHas('tokens', function ($query) {
$query->whereDate('expires_at', now()->addWeek());
})