Problem with a route not defined in Laravel

0

I hosted my Laravel project, however when I try to access: link it ends up redirecting to = > link

On the routes there is nothing referring to this view public (This route is unnecessary, I do not know for what reasons it appeared)

Route::group(['middleware' => 'auth'], function () {
    Route::get('/home', 'HomeController@index');
    Route::get('/', 'HomeController@index');
});

obs. If I access domain.com / home, it works (goes to the login screen if the user is not logged in, if logged in, enter the home).

HomeController:

public function __construct()
{
    $this->middleware('auth');
}

public function index()
{
    $user_name = Auth::User()->name;
    return view('home', compact("user_name"));
}

There is an error generated when accessing the route dominio.com.br/public :

NotFoundHttpException in RouteCollection.php line 161:

HTACCESS

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
    
asked by anonymous 14.09.2016 / 18:13

0 answers