Completed
Branch master (680f5d)
by Marcin
09:26
created
Category
app/Http/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 use Illuminate\Http\Request;
4 4
 use TQ\Shamir\Secret;
5 5
 
6
-$app->get('/', function () use ($app) {
6
+$app->get('/', function() use ($app) {
7 7
     return view(
8 8
         'index',
9 9
         [
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     );
14 14
 });
15 15
 
16
-$app->post('/', function (Request $request) use ($app) {
16
+$app->post('/', function(Request $request) use ($app) {
17 17
     $response = 'An error ocurred';
18 18
 
19 19
     // Set up post values
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         // should return either a User instance or null. You're free to obtain
30 30
         // the User instance via an API token or any other method necessary.
31 31
 
32
-        $this->app['auth']->viaRequest('api', function ($request) {
32
+        $this->app[ 'auth' ]->viaRequest('api', function($request) {
33 33
             if ($request->input('api_token')) {
34 34
                 return User::where('api_token', $request->input('api_token'))->first();
35 35
             }
Please login to merge, or discard this patch.