-
Notifications
You must be signed in to change notification settings - Fork 1
Middleware
kaythinks edited this page Apr 10, 2020
·
1 revision
THe Middleware class is an utility class with a collection of different static methods. The framework comes with an auth method which can be called in the construct method like this e.g $this->middleware('auth'); The middleware method accepts the 'auth' string which is the name of the static method defined in the Middleware class. It resolves this and calls the static method if it exists.
Made with love in Naija