fix: 🐛 Fix routes redirect
This commit is contained in:
parent
fe462ac78c
commit
42106ec845
|
@ -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>
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
public const HOME = '/home';
|
||||
public const HOME = '/dashboard';
|
||||
|
||||
/**
|
||||
* The controller namespace for the application.
|
||||
|
|
Loading…
Reference in New Issue