class client does not exist laravel middleware code example
Example: class [App\Http\Middleware\EnsureEmailIsVerified] does not exist when there is a file
Well first of all look at the namespaces:
namespace Illuminate\Auth\Middleware;
you should rename it to:
namespace App\Http\Middleware;