<?php
namespace App\Http\Middleware;
use App\Http\Helpers\Response;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
if($request->routeIs('admin.*')) {
return route('admin.login');
}else if($request->routeIs("user.*")) {
return route('user.login');
}
return route('frontend.index');
}
return abort(Response::error(['Access denied! Unauthenticated'],[],401));
}
}
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.