Skip to content

Commit

Permalink
fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Oct 10, 2021
1 parent 31ea5cc commit 724ecf8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Containers\AppSection\Authentication\Actions\WebLogoutAction;
use App\Containers\AppSection\Authentication\UI\WEB\Requests\LogoutRequest;
use App\Ship\Parents\Controllers\WebController;
use App\Ship\Providers\RouteServiceProvider;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Http\RedirectResponse;
use Illuminate\Routing\Redirector;
Expand All @@ -14,6 +15,7 @@ class LogoutController extends WebController
public function logout(LogoutRequest $request): Redirector|Application|RedirectResponse
{
app(WebLogoutAction::class)->run();
return redirect('/');

return redirect()->route(RouteServiceProvider::HOME);
}
}

0 comments on commit 724ecf8

Please sign in to comment.