If you find this website useful, your sponsorship would greatly support its ongoing development and maintenance. Learn more



If a user is logged in and becomes in active ie an admin changes their account to in-active they will be logged out.

Also these enforce the 2FA pages load when logged in and the 2FA code has not yet been entered, Stopping other pages from loading before approving 2FA.

    Route::middleware(['web', 'auth', 'activeUser'])->prefix('admin')->group(function () {


When IP Lockdown (Office Login) has been enabled the application can only be used from pre-authorised IP addresses. Applying the middleware to routes forces this.

The IP addresses can be set from the System Settings page in the admin.

    Route::middleware(['web', 'auth', 'IpCheckMiddleware'])->prefix('admin')->group(function () {


Checks if the logged in user has the specified role.

    Route::middleware(['web', 'auth', 'role:admin'])->prefix('admin')->group(function () {

© 2024 Laravel AdminTW. All rights reserved.

Built by David Carr