Laravel 5 ProfileController由于某种原因重定向到Home


Laravel 5 ProfileController redirecting to Home for some reason

所以我试图访问myproject/public/profile上的一个页面集,该页面集在我的routes.php:中定义

Route::get('profile','ProfileController@profile');

("配置文件"一词没有其他路径,甚至没有包含配置文件的路径)

我的个人资料.blade.php:

@extends('app')
@section('scripts')
@endsection
@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="panel panel-default">
                            <?php 
                                 $userid = Input::get('id');
                                 $user = DB::table('users')->where('id',intval($eventid))->first();
                                 $userprofile = DB::table('user_details')->where('user_id',$userid)->first();
                                 ?>
                            <div class="panel-heading"><?php                                    
                                 echo '<b> Profile of ' . $user->first_name . ' ' . $user->last_name . '</b></br>';
                            ?></div>
                            <input class="floatright" type="button" name="addimage" id="addimage" value="Add pictures"/>
            </div>
        </div>
    </div>
</div>
@endsection

我的配置文件控制器:

<?php namespace App'Http'Controllers;
class ProfileController extends Controller {
/**
 * Create a new controller instance.
 *
 * @return void
 */
public function __construct()
{
    $this->middleware('guest');
}
    public function getprofile(){
        $userid = Input::get('userid');
        if($userid){
            return view('errors/404');
        }
        $user = DB::table('users').where('id',$userid);
        if(!$user){
            return view('errors/404');
        }
        return view('profile');
    }

}

问题:这是我自己创建的整个项目中唯一一个重定向到myproject/public/home的页面(在我的get请求后,我收到了http 302回复)有人能看到我遗漏了什么吗?或者是什么迫使我进入主页?

此页面是否仅适用于登录用户?然后使用

$this->middleware('auth');