Hesto/multi-auth

Login is redirect me to same page without any respons

Closed this issue · 0 comments

Hi I installed the package as show in the read me file.
I also used jeroennoten/laravel-adminlte as admin package.
I made one new auth called Patient.
everything going OK with the registration.
but comes to the login when I go to the login page and try to login it redirect me to same page without any response.
what is wrong.

Update
I found out the Issue but can't solve it

Here is my routes

Route::group(
	[
		'prefix'     => LaravelLocalization::setLocale(),
		'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]
	],
	function () {
		Route::group( [ 'prefix' => 'patient', 'as' => 'patient.' ], function () {
			Route::get( 'login', 'PatientAuth\LoginController@showLoginForm' )->name( 'login' );
			Route::post( 'login', 'PatientAuth\LoginController@login' );
			Route::post( 'logout', 'PatientAuth\LoginController@logout' )->name( 'logout' );

			Route::get( 'register', 'PatientAuth\RegisterController@showRegistrationForm' )->name( 'register' );
			Route::post( 'register', 'PatientAuth\RegisterController@register' );

			Route::post( 'password/email', 'PatientAuth\ForgotPasswordController@sendResetLinkEmail' )->name( 'password.request' );
			Route::post( 'password/reset', 'PatientAuth\ResetPasswordController@reset' )->name( 'password.email' );
			Route::get( 'password/reset', 'PatientAuth\ForgotPasswordController@showLinkRequestForm' )->name( 'password.reset' );
			Route::get( 'password/reset/{token}', 'PatientAuth\ResetPasswordController@showResetForm' );
			//  My Custom Routes on patient
			Route::get( 'profile', function () {
				return view( 'patient.mainProfile' );
			} );
		} );
	} );

I am using the LaravelLocalization as a group and this is casing the problem
any idea how can I get around this issue.