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

Commit 39cb40d

Browse files
committed
API fixes
1 parent 879f573 commit 39cb40d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Console/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handle()
7979
$this->comment("\n RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]");
8080

8181
$this->line("\n Also update your jwt config file and set the user to:");
82-
$this->comment("\n \App\Repositories\User\User::class ");
82+
$this->comment("\n \App\Models\User::class ");
8383

8484
$this->info('Finished setting up your basic JWT API');
8585
} else {

src/Packages/API/app/Http/Controllers/Api/AuthController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Validator;
77
use Illuminate\Http\Request;
88
use {{App\}}Services\UserService;
9-
use {{App\}}Repositories\User\User;
9+
use {{App\}}Models\User;
1010
use Tymon\JWTAuth\Facades\JWTAuth;
1111
use {{App\}}Http\Controllers\Controller;
1212

src/Packages/API/routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|
1414
*/
1515

16-
Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function () {
16+
Route::group(['prefix' => 'v1', 'namespace' => 'Api'], function () {
1717
Route::post('login', 'AuthController@login');
1818
Route::post('register', 'AuthController@register');
1919

0 commit comments

Comments
 (0)