Factory

interface Factory (View source)

Methods

mixed guard(string|null $name = null)

Get a guard instance by name.

void shouldUse(string $name)

Set the default guard the factory should serve.

Details

mixed guard(string|null $name = null)

Get a guard instance by name.

Parameters

string|null $name

Return Value

mixed

void shouldUse(string $name)

Set the default guard the factory should serve.

Parameters

string $name

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Contracts/Auth/Factory.html