How to record behavior Log with Middleware in thinkphp
Most people do not understand the knowledge points of this article "thinkphp how to record behavior log with middleware", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "thinkphp how to record behavior log with middleware" article.
First, define middleware
Middleware can be generated quickly through command line instructions
Php think make:middleware Behavior
This command generates a Behavior middleware under the app/middleware directory. The contents are as follows: