Events/Authenticated.php

framework · src/Illuminate/Auth/Events/Authenticated.php · php · MIT
auth, tag:embed-classified

Event fired when a user is authenticated, carrying guard and user data.

// Source: https://github.com/laravel/framework | License: MIT | Copyright Taylor Otwell
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Illuminate\Auth\Events;

use Illuminate\Queue\SerializesModels;

class Authenticated
{
    use SerializesModels;

    /**
     * Create a new event instance.
     *
     * @param  string  $guard  The authentication guard name.
     * @param  \Illuminate\Contracts\Auth\Authenticatable  $user  The authenticated user.
     */
    public function __construct(
        public $guard,
        public $user,
    ) {
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key