You posted this in the Lumen category so I suppose you are using Lumen and not the full blown Laravel. Is it possible Lumen does not have this middleware available out of the box?
The can middleware in Laravel is actually the Illuminate\Auth\Middleware\Authorize class. Do you have a can defined in the middleware of your Http\Kernel.php?