\App\Http\MiddlewareCheckUserType

Summary

Methods
Properties
Constants
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

handle()

handle(\Illuminate\Http\Request  $request, \Closure  $next) : mixed

Handle an incoming request.

Check if the user is admin

TODO: check for additional user types - eg. staff, moderators etc

Parameters

\Illuminate\Http\Request $request
\Closure $next

Returns

mixed