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