just create ANOTHER middleware that checks that field in the logged in user. If it's "N", then do the logout, or redirect:
artisan make:middleware CheckIsActive
then in \app\http\Kernel.php, in the $routeMiddleware array, add:
'isActive' => \App\Http\Middleware\CheckIsActive::class,
then in \app\http\Middleware\CheckIsActive.php, something like this in the handle method (just use boolean and not N/Y, but whatever..):
if(!$request->user()->is_active == 'N')
//logout, redirect wherever you want, etc.
}
return $next($request);
then, you apply that middleware too the routes you want. if it's applicable to all the routes, you could do something like this in web.php
Route::group(['middleware' => 'isActive'], function () {
//all your protected routes
});