master

laravel/framework

Last updated at: 29/12/2023 09:21

PasswordBrokerFactory.php

TLDR

This file is an interface that defines a method for getting a password broker instance by name.

Methods (if applicable)

broker

This method is used to get a password broker instance by name. It takes an optional parameter name which specifies the name of the password broker. The method returns an instance of the PasswordBroker interface.

Classes (if applicable)

None

<?php

namespace Illuminate\Contracts\Auth;

interface PasswordBrokerFactory
{
    /**
     * Get a password broker instance by name.
     *
     * @param  string|null  $name
     * @return \Illuminate\Contracts\Auth\PasswordBroker
     */
    public function broker($name = null);
}