mengembalikan json di middleware laravel
abort(response()->json('Unauthorized', 403));
Cloudy Cockroach
abort(response()->json('Unauthorized', 403));