<?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);
}
}
Transfer Money
Our transfer system provides a seamless and secure way to move your funds. Enjoy a straightforward process with top-notch security features, ensuring that sending money to friends, family, or businesses is both quick and worry-free. Experience smooth transactions with confidence, knowing that your security is our highest priority.