【发布时间】:2015-12-09 06:46:09
【问题描述】:
我正在 LARAVEL4.2.* 中制作管理面板。我在“admin”文件夹中创建了控制器,也在“admin”文件夹中创建了一个视图。我的控制器代码是
namespace admin;
class AuthController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
}
我的路线编码是:
Route::get('admin/login', array('as' => 'admin.login', 'uses' => 'App\Controllers\Admin\AuthController@getLogin'));
我也尝试过 50 次以上的“composer update”和“composer dump-autoload”。我的网址是 localhost/laraveltest/public/admin/login。
【问题讨论】:
标签: laravel-routing