Skip to content

Commit

Permalink
修复代码块格式
Browse files Browse the repository at this point in the history
use Illuminate\Support\Facades\Auth;

    protected function guard()
    {
        return Auth::guard('guard-name');
    }
  • Loading branch information
罗彦 committed Dec 12, 2016
1 parent 8361409 commit d6a1451
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions authentication.md
Expand Up @@ -81,10 +81,10 @@ Laravel 通过运行如下命令可快速生成认证所需要的路由和视图

Laravel默认使用 `email` 字段来认证。如果你想用其他字段认证,可以在 `LoginController` 里面定义一个 `username` 方法

public function username()
{
return 'username';
}
public function username()
{
return 'username';
}

#### 自定义 Guard

Expand Down

0 comments on commit d6a1451

Please sign in to comment.