for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\Authentication\Tasks;
use Illuminate\Auth\AuthManager as Auth;
/**
* Class WebLogoutTask.
*
* @author Mahmoud Zalt <[email protected]>
*/
class WebLogoutTask
{
* @var \Illuminate\Auth\AuthManager
private $auth;
* WebAuthenticationTask constructor.
* @param \Illuminate\Auth\AuthManager $auth
public function __construct(Auth $auth)
$this->auth = $auth;
}
* @return bool
public function run()
$this->auth->logout();
return true;