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

- Formatting

parent c0bb6668
......@@ -3,8 +3,8 @@
namespace App\Http\Controllers\Api\V1;
use Illuminate\Http\Request;
use Validator;
use Illuminate\Support\Facades\Auth;
use Validator;
class AuthController extends APIController
{
......@@ -30,8 +30,7 @@ class AuthController extends APIController
try {
if(!Auth::attempt($credentials))
{
if (!Auth::attempt($credentials)) {
return $this->throwValidation(trans('api.messages.login.failed'));
}
......@@ -72,9 +71,7 @@ class AuthController extends APIController
public function logout(Request $request)
{
try {
$request->user()->token()->revoke();
} catch (\Exception $e) {
return $this->respondInternalError($e->getMessage());
}
......
......@@ -73,6 +73,6 @@ class Kernel extends HttpKernel
* Access Middleware
*/
'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 [
App\Providers\HistoryServiceProvider::class,
App\Providers\RouteServiceProvider::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