Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit a7a0977

Browse files
committed
update the api and console routes
1 parent 3bc351a commit a7a0977

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

routes/api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
|
1414
*/
1515

16-
Route::get('/user', function (Request $request) {
16+
Route::middleware('auth:api')->get('/user', function (Request $request) {
1717
return $request->user();
18-
})->middleware('auth:api');
18+
});

routes/console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515

1616
Artisan::command('inspire', function () {
1717
$this->comment(Inspiring::quote());
18-
});
18+
})->describe('Display an inspiring quote');

0 commit comments

Comments
 (0)