That is odd because there is a closure in the routes/api.php by default. You would have to comment the Closures out. This means the api/user route and the welcome route as well.
@jeffdavis Yea I commented that closure. But I am using the auth facade provided by Laravel. If I comment this closure, it won't have any affect on the authorization?
If you need the api/user route, then you have to change it from a closure to something else. If you send it to a controller, then it will be cacheable.
I am actually talking about something that I haven't tried myself yet, but that seems right.