The %command.name% command generates a new Middleware class. php %command.full_name% CustomMiddleware If the argument is missing, the command will ask for the message class interactively.