More Facades, User delete
This commit is contained in:
@@ -2,13 +2,16 @@
|
||||
|
||||
namespace Api\Logout;
|
||||
|
||||
use Khofmann\Api\Api;
|
||||
use \Khofmann\Models\User\User;
|
||||
use Khofmann\Request\Request;
|
||||
use Khofmann\Response\Response;
|
||||
|
||||
class Logout
|
||||
class Logout extends Api
|
||||
{
|
||||
public function post()
|
||||
{
|
||||
$token = request()->getHeader("token");
|
||||
return json_decode(User::getByToken($token)->logOut());
|
||||
$token = Request::header("token");
|
||||
return Response::json(User::getByToken($token)->logOut());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user