No, you shouldn't.
Lumen is mainly used for RESTful APIs since Lumen 5.2, so the views functionality was removed.
CSRF tokens are used in a session based traditional application while the RESTful APIs are stateless and do not use sessions.
Hi All, i am new in Lumen, i was read why Lumen 5.4 not supported CSRF token as they have classes support in Lumen 5.1 , should i down grade to Lumen 5.1 ?
JSON Web Tokens is one of the possible options. The JWT Auth package is quite easy to use.
Please or to participate in this conversation.