Skip to content

Commit ffe5123

Browse files
author
= Geo =
committed
namespace on a new line
1 parent a5d1f5b commit ffe5123

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

authentication.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ If you are using PHP FastCGI, HTTP Basic authentication may not work correctly o
331331

332332
You may also use HTTP Basic Authentication without setting a user identifier cookie in the session, which is particularly useful for API authentication. To do so, [define a middleware](/docs/{{version}}/middleware) that calls the `onceBasic` method. If no response is returned by the `onceBasic` method, the request may be passed further into the application:
333333

334-
<?php namespace Illuminate\Auth\Middleware;
334+
<?php
335+
336+
namespace Illuminate\Auth\Middleware;
335337

336338
use Auth;
337339
use Closure;
@@ -607,7 +609,9 @@ The `Illuminate\Contracts\Auth\UserProvider` implementations are only responsibl
607609

608610
Let's take a look at the `Illuminate\Contracts\Auth\UserProvider` contract:
609611

610-
<?php namespace Illuminate\Contracts\Auth;
612+
<?php
613+
614+
namespace Illuminate\Contracts\Auth;
611615

612616
interface UserProvider {
613617

@@ -633,7 +637,9 @@ The `validateCredentials` method should compare the given `$user` with the `$cre
633637

634638
Now that we have explored each of the methods on the `UserProvider`, let's take a look at the `Authenticatable`. Remember, the provider should return implementations of this interface from the `retrieveById` and `retrieveByCredentials` methods:
635639

636-
<?php namespace Illuminate\Contracts\Auth;
640+
<?php
641+
642+
namespace Illuminate\Contracts\Auth;
637643

638644
interface Authenticatable {
639645

0 commit comments

Comments
 (0)