Completed
Push — master ( 367e07...23dc00 )
by richard
15:03
created
database/migrations/2018_04_08_120823_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('users', function (Blueprint $table) {
16
+        Schema::create('users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('email');
19 19
             $table->string('name');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,12 +7,12 @@  discard block
 block discarded – undo
7 7
 */
8 8
 
9 9
 $api = app('Dingo\Api\Routing\Router');
10
-$api->version('v1', function ($api) {
10
+$api->version('v1', function($api) {
11 11
 
12 12
     /**
13 13
      * Welcome message.
14 14
      */
15
-    $api->get('/', function () {
15
+    $api->get('/', function() {
16 16
         return 'LaCMS API';
17 17
     });
18 18
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         // 'middleware' => 'api:auth', // @todo
25 25
         'prefix' => 'users',
26 26
         'namespace' => 'App\Http\Controllers\Api\V1',
27
-    ], function ($api) {
27
+    ], function($api) {
28 28
         $api->get('/', 'UsersController@index');
29 29
         $api->post('/', 'UsersController@store');
30 30
         $api->get('/{id}', 'UsersController@show');
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         // 'middleware' => 'api:auth', // @todo
43 43
         'prefix' => 'images',
44 44
         'namespace' => 'App\Http\Controllers\Api\V1',
45
-    ], function ($api) {
45
+    ], function($api) {
46 46
         $api->get('/', 'ImagesController@index');
47 47
         $api->post('/', 'ImagesController@store');
48 48
         // $api->get('/{id}', 'ImagesController@show');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // 'middleware' => 'foo',
62 62
         'prefix' => 'posts',
63 63
         'namespace' => 'App\Http\Controllers\Api\V1',
64
-    ], function ($api) {
64
+    ], function($api) {
65 65
         $api->get('/', 'PostsController@index');
66 66
         $api->post('/', 'PostsController@store');
67 67
         $api->get('/{id}', 'PostsController@show');
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         // 'middleware' => 'foo',
82 82
         'prefix' => 'authors',
83 83
         'namespace' => 'App\Http\Controllers\Api\V1',
84
-    ], function ($api) {
84
+    ], function($api) {
85 85
         $api->get('/', 'AuthorsController@index');
86 86
         $api->post('/', 'AuthorsController@store');
87 87
         $api->get('/{id}', 'AuthorsController@show');
Please login to merge, or discard this patch.