refactor: moved user eligibility check

Additionally, deprecated the ApplicationEligibility middleware
This commit is contained in:
2022-09-01 23:14:13 +01:00
parent 43e6859366
commit b96a20a0a9
2 changed files with 23 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
namespace App\Http\Middleware;
use App\Application;
use App\User;
use Carbon\Carbon;
use Closure;
use Exception;
@@ -35,6 +36,8 @@ class ApplicationEligibility
/**
* Handle an incoming request.
*
* @deprecated Deprecated in 0.9.0
* @see User::isEligible()
* @param Request $request
* @param Closure $next
* @return mixed