Commit 38d52fd9 authored by Vidhyut Pandya's avatar Vidhyut Pandya

- Formatting

parent c0bb6668
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
namespace App\Http\Controllers\Api\V1; namespace App\Http\Controllers\Api\V1;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Validator;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use Validator;
class AuthController extends APIController class AuthController extends APIController
{ {
...@@ -30,8 +30,7 @@ class AuthController extends APIController ...@@ -30,8 +30,7 @@ class AuthController extends APIController
try { try {
if(!Auth::attempt($credentials)) if (!Auth::attempt($credentials)) {
{
return $this->throwValidation(trans('api.messages.login.failed')); return $this->throwValidation(trans('api.messages.login.failed'));
} }
...@@ -72,9 +71,7 @@ class AuthController extends APIController ...@@ -72,9 +71,7 @@ class AuthController extends APIController
public function logout(Request $request) public function logout(Request $request)
{ {
try { try {
$request->user()->token()->revoke(); $request->user()->token()->revoke();
} catch (\Exception $e) { } catch (\Exception $e) {
return $this->respondInternalError($e->getMessage()); return $this->respondInternalError($e->getMessage());
} }
......
...@@ -73,6 +73,6 @@ class Kernel extends HttpKernel ...@@ -73,6 +73,6 @@ class Kernel extends HttpKernel
* Access Middleware * Access Middleware
*/ */
'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class, 'access.routeNeedsRole' => \App\Http\Middleware\RouteNeedsRole::class,
'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class 'access.routeNeedsPermission' => \App\Http\Middleware\RouteNeedsPermission::class,
]; ];
} }
...@@ -199,7 +199,7 @@ return [ ...@@ -199,7 +199,7 @@ return [
App\Providers\HistoryServiceProvider::class, App\Providers\HistoryServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
Bvipul\Generator\Provider\CrudGeneratorServiceProvider::class, Bvipul\Generator\Provider\CrudGeneratorServiceProvider::class,
Laravel\Passport\PassportServiceProvider::class Laravel\Passport\PassportServiceProvider::class,
], ],
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment