PHP Classes

File: server/app/Http/Controllers/Auth/LogoutController.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/app/Http/Controllers/Auth/LogoutController.php   Download  
File: server/app/Http/Controllers/Auth/LogoutController.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 389 bytes
 

Contents

Class file image Download
<?php

namespace App\Http\Controllers\Auth;

use
App\Http\Controllers\Controller;
use
Illuminate\Http\Request;

/**
 * Log out
 */
class LogoutController extends Controller
{
    public function
__construct()
    {
       
$this->middleware(['auth:api']);
    }

    public function
__invoke()
    {
       
auth()->logout();

        return
$this->sendResponse([], 'logged out');
    }
}