Support the ongoing development of Laravel.io →
Configuration Requests Validation

Hi,

I have an issue since several weeks now and I can't find any solution on Internet.

Let's say I am trying to access the local address http://laraveltest.dev/some_address protected by a filter:

Route::filter('auth', function()
{
	if (Auth::guest()) return Redirect::guest('login');
});

I am redirected to the login page. After login, I am supposed to be redirected to http://laraveltest.dev/some_address with this piece of code:

if(Auth::attempt(array('email' => $email, 'password' => $password)))
{
      return Redirect::intended('/')->with('message', 'Thanks for signing in');
}

Instead of being redirected to http://laraveltest.dev/some_address, I am being redirected to **http://laraveltest.dev/**http://laraveltest.dev/some_address and I have the error message You don't have permission to access **/**http://laraveltest.dev/some_address on this server.

Is there a problem with my configuration or am I doing something wrong ?

Thank You

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

easymomo easymomo Joined 14 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.