What is the function of the following route followed by name('register')?
name('register')
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Route name, easy to generate url
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.
Route name, easy to generate url
The
where method constrains the parameters passed in by the previous route, such as
The previous name parameter must match the following regular expression to call the following callback function.