mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-03-17 19:03:13 -05:00
refactor: use laravel notifications for system user private messages
This commit is contained in:
@@ -22,9 +22,9 @@ use App\Models\BonExchange;
|
||||
use App\Models\BonTransactions;
|
||||
use App\Models\PersonalFreeleech;
|
||||
use App\Models\User;
|
||||
use App\Notifications\PersonalFreeleechCreated;
|
||||
use App\Services\Unit3dAnnounce;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
@@ -97,10 +97,7 @@ class TransactionController extends Controller
|
||||
|
||||
Unit3dAnnounce::addPersonalFreeleech($user->id);
|
||||
|
||||
$user->sendSystemNotification(
|
||||
subject: trans('bon.pm-subject'),
|
||||
message: \sprintf(trans('bon.pm-message'), Carbon::now()->addDays(1)->toDayDateTimeString()).config('app.timezone').'[/b]!',
|
||||
);
|
||||
$user->notify(new PersonalFreeleechCreated());
|
||||
|
||||
break;
|
||||
case $bonExchange->invite:
|
||||
|
||||
Reference in New Issue
Block a user