<?php
namespace App\Http\Middleware\Admin;
use App\Providers\Admin\BasicSettingsProvider;
use Closure;
use Illuminate\Http\Request;
class MailGuard
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
*/
public function handle(Request $request, Closure $next)
{
$basic_settings = BasicSettingsProvider::get();
if($basic_settings->mail_config == null) return back()->withInput()->with(['warning' => ['You have to configure your system mail first.']]);
return $next($request);
}
}
How To Payment
Making a payment on our website is quick and secure. Start by logging in or creating an account. Select your preferred payment method, input the required details, and review the information. Once you confirm everything is correct, click on the "Submit Payment" button. You’ll receive instant confirmation and can track your payment status through your account dashboard. It’s an easy and secure process.