- Route::get('about', ['middleware' => 'auth', function(){
- return '该页面只有用户登录之后才会显示';
- }]);
Route::get('movie', function(){return '电影列表...';});Route::post('movie', function(){return '发布电影...';});Route::get('movie/{movie_id}', function($movie_id){return '电影:' . $movie_id;});Route::get('movie/{movie_id}', function($movie_id){return '电影:' . $movie_id;})->where('movie_id', '[a-z]+');Route::get('movie/{movie_id}', function($movie_id) { return '电影 '.$movie_id;
})
->where('movie_id','[0-9]+');
Route::get('movie', function() {return View::make('movie.index')->with('user', '王皓');});Route::get('movie', 'MovieController@movieIndex');Route::get('movie/{movie_id}', 'MovieController@movieGet')->where('movie_id', '[0-9]+');Route::resource('users', 'UserController');Route::controllers([
'auth' => 'Auth\AuthController',
'password' => 'Auth\PasswordController',
]);