fix: 🐛 Fix routes redirect

This commit is contained in:
Maicol Battistini 2021-12-14 19:26:13 +01:00
parent fe462ac78c
commit 42106ec845
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" autoUpload="Always" serverName="Laragon" remoteFilesAllowedToDisappearOnAutoupload="false" autoUploadExternalChanges="true">
<component name="PublishConfigData" serverName="Laragon" remoteFilesAllowedToDisappearOnAutoupload="false">
<serverData>
<paths name="Laragon">
<serverdata>
@ -10,6 +10,5 @@
</serverdata>
</paths>
</serverData>
<option name="myAutoUpload" value="ALWAYS" />
</component>
</project>

View File

@ -12,7 +12,7 @@ class Authenticate extends Middleware
protected function redirectTo($request): string|null
{
if (!$request->expectsJson()) {
return route('login');
return route('auth.login');
}
return null;
}

View File

@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
public const HOME = '/home';
public const HOME = '/dashboard';
/**
* The controller namespace for the application.