Skip to content

Commit

Permalink
Refactor: return responses has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleon4 committed Jun 12, 2022
1 parent 9de84a8 commit ffdb4c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use LionRequest\Response;

class LoginController extends Controller {

Expand All @@ -12,11 +11,11 @@ public function __construct() {
}

public function auth() {
return Response::success('signin...');
return $this->response->success('signin...');
}

public function logout() {
return Response::success('logout...');
return $this->response->success('logout...');
}

}
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct() {
}

public function register() {
return Response::success('signout...');
return $this->response->success('signout...');
}

}

0 comments on commit ffdb4c5

Please sign in to comment.