waht is middleware code example
Example 1: middleware
//just for me lol... pls don't delete
"middleware" - code that runs before the final route call back.
They are in the middle of the beginning of the route and the
callback function.
Example 2: middleware
, PostController::class)->middleware('auth:api');