|
@@ -30,7 +30,7 @@ |
|
|
block discarded – undo |
|
30
|
30
|
// should return either a User instance or null. You're free to obtain |
|
31
|
31
|
// the User instance via an API token or any other method necessary. |
|
32
|
32
|
|
|
33
|
|
- $this->app['auth']->viaRequest('api', function ($request) { |
|
|
33
|
+ $this->app[ 'auth' ]->viaRequest('api', function($request) { |
|
34
|
34
|
if ($request->input('api_token')) { |
|
35
|
35
|
return User::where('api_token', $request->input('api_token'))->first(); |
|
36
|
36
|
} |
Please login to merge, or discard this patch.