ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/vendor/laravel/fortify/src/Http/Responses/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/vendor/laravel/fortify/src/Http/Responses/LogoutResponse.php

<?php

namespace Laravel\Fortify\Http\Responses;

use Illuminate\Http\JsonResponse;
use Laravel\Fortify\Contracts\LogoutResponse as LogoutResponseContract;
use Laravel\Fortify\Fortify;

class LogoutResponse implements LogoutResponseContract
{
    /**
     * Create an HTTP response that represents the object.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function toResponse($request)
    {
        return $request->wantsJson()
                    ? new JsonResponse('', 204)
                    : redirect(Fortify::redirects('logout', '/'));
    }
}

Zerion Mini Shell 1.0