thekordy / ticketit

A simple helpdesk tickets system for Laravel 5.1+ which integrates smoothly with Laravel default users and auth system, demo is available at: http://ticketit.kordy.info/tickets
MIT License
875 stars 384 forks source link

Multi-Auth #413

Closed nisargshh closed 6 years ago

nisargshh commented 6 years ago

Hi, I am using https://packagist.org/packages/hesto/multi-auth and I was wondering if there is a way to go to a different auths login page when the user is not logged in. I am using the main laravel auth for normal users and multi-auth for admin authentication, but when user is not logged in he gets redirected to admin login page.

nisargshh commented 6 years ago

I fixed the issue, basically you need to remove the name of the multiauth login. It was like this before:- Route::get('/login', 'AdminAuth\LoginController@showLoginForm')->name('login'); After:- Route::get('/login', 'AdminAuth\LoginController@showLoginForm');