Skip to content

Auth Overview ​

Redot Auth gives any guard a complete authentication stack — login, logout, registration, password reset, magic links, email verification, and a lock screen. You describe each panel once in a service provider (its guard, views, and features), then register its routes with one line. The same setup works for web (session) and API (token) guards, and it's fully compatible with route:cache and config:cache.

Quick start ​

Define the panel in a service provider's boot() method:

php
use Redot\Auth\Facades\RedotAuth;
use Redot\Auth\Features\Login;
use Redot\Auth\Features\Logout;
use Redot\Auth\Features\PasswordReset;

RedotAuth::panel('admin')
    ->guard('admins')
    ->views('admin.auth')
    ->features(
        Login::make(),
        PasswordReset::make(),
        Logout::make(),
    );

Then register its routes inside the route group whose name prefix and middleware they should inherit:

php
Route::name('admin.')->prefix('admin')->group(function () {
    RedotAuth::routes('admin');
});

That registers admin.login, admin.password.request, admin.logout, and friends, rendering admin.auth.login, admin.auth.forgot-password, and so on.

Common tasks ​

  • Components overview — the form fields you build login/register screens with.
  • Input — the standard text field used in auth forms.

Proprietary — for use within the Redot Dashboard. Product site: redot.dev