我正在使用Laravel 5.2。我有一个管理面板在我的项目与登录页面。拥有有效电子邮件和密码的用户可以访问但我的代码给我错误Laravel用户登录系统
ErrorException in UrlGenerator.php line 603:
Action App\Http\Controllers\[email protected] not defined. (View: E:\xampp\htdocs\blog\resources\views\admin\login.blade.php)
InvalidArgumentException in UrlGenerator.php line 603:
Action App\Http\Controllers\[email protected] not defined.
这里是我的登录表单:
{!! Form::open(['class' => 'form-horizontal', 'role' => 'form', 'method' => 'post', 'action' => '[email protected]']) !!}
<fieldset>
<div class="input-prepend" title="email">
<span class="add-on"><i class="halflings-icon user"></i></span>
<input class="input-large span10" name="email" id="email" type="text" placeholder="type email"/>
</div>
<div class="clearfix"></div>
<div class="input-prepend" title="Password">
<span class="add-on"><i class="halflings-icon lock"></i></span>
<input class="input-large span10" name="password" id="password" type="password" placeholder="type password"/>
</div>
<div class="clearfix"></div>
<label class="remember" for="remember"><input type="checkbox" id="remember" />Remember me</label>
<div class="button-login">
<button type="submit" class="btn btn-primary">Login</button>
</div>
<div class="clearfix"></div>
</fieldset>
{!! Form::close() !!}
这里是我的控制文件:
这里是我的路线文件:
Route::get('/admin', '[email protected]');
Route::group(['middleware' => 'web'], function() {
Route::auth();
});
你在路由文件中指定了控制器吗? –