When I run command php artisan serve, I got this error: 
local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'syntax error, unexpected 'as' (T_AS)' in D:\xampp\htdocs\laravel\vendor\laravel\framework\src\Illuminate\Http\Request.php:705 Stack trace: #0 {main}
Route::group(['prefix' => 'admin'], function() {
    Route::get('/', [ 'as' => 'admin.login', 'uses' => 'Admin\AuthController@getLogin' ]);
    Route::post('/login', [ 'as' => 'admin.checkLogin', 'uses' => 'Admin\AuthController@checkLogin' ]);
    Route::get('/logout', [ 'as' => 'admin.logout', 'uses' => 'Admin\AuthController@getLogout' ]);
    Route::group(['middleware' => 'auth'], function() {
        Route::get('/dashboard', function(){
            return view('admin::user.dashboard');
        });
        Route::get('/users', [ 'as' => 'user.index', 'uses' => 'UserController@index' ]);
    });
});
 
    