blob: d76ee76489a4b8be0c89eaf285a28dcc90cd2ceb [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Auth;
4
5interface Factory
6{
7 /**
8 * Get a guard instance by name.
9 *
10 * @param string|null $name
11 * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
12 */
13 public function guard($name = null);
14
15 /**
16 * Set the default guard the factory should serve.
17 *
18 * @param string $name
19 * @return void
20 */
21 public function shouldUse($name);
22}