initial commit

This commit is contained in:
Inshal
2024-10-25 01:05:27 +05:00
commit 94cd8a1dc9
1710 changed files with 273609 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Middleware;
use Closure;
use App\Model\ProcessLog;
use Carbon\Carbon;
use App\Classes\Constant;
use Illuminate\Auth\AuthenticationException;
use App\Model\Client;
use App\Model\JsToken;
use Illuminate\Support\Facades\Auth;
use App\User;
class AgentAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
Auth::setDefaultDriver('agent');
return $next($request);
}
}