Actualizacuion de Rama Kquiroz
This commit is contained in:
@@ -7,7 +7,10 @@ use Illuminate\Http\Request;
|
||||
use App\Models\SellerWithdrawRequest;
|
||||
use App\Models\Payment;
|
||||
use App\Models\Shop;
|
||||
use App\Models\User;
|
||||
use Session;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use App\Notifications\PayoutNotification;
|
||||
|
||||
class CommissionController extends Controller
|
||||
{
|
||||
@@ -77,6 +80,9 @@ class CommissionController extends Controller
|
||||
$seller_withdraw_request->save();
|
||||
}
|
||||
|
||||
$users = User::findMany([$shop->user->id, User::where('user_type', 'admin')->first()->id]);
|
||||
Notification::send($users, new PayoutNotification($shop->user, $payment_data['amount'], 'paid'));
|
||||
|
||||
Session::forget('payment_data');
|
||||
Session::forget('payment_type');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user