What is the function of the following route followed by name('register')
?
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
给我你的怀抱2017-05-16 16:51:14
The
where method constrains the parameters passed in by the previous route, such as
Route::get('user/{name}', function ($name) {
//
})
->where('name', '[A-Za-z]+');
The previous name parameter must match the following regular expression to call the following callback function.