i need your help, i am leaning laravel and run into a problem with registering new a new user. I discovered the problem but the problem is that the change i made to the register.blade.php wont reflect in browser, the problem was that instead of name="usename
i had name="Username"
and thats it, even after deleting the view, the register page is still there, i tried some commads like php artisan cache"clear
php artisan view"clear
composer dumpautoload
, did not work. The file is the classing register.blade.php file with an addition that i added the "username", i will provide you with the changed part if you need something else i will gladly provide it. Thank you in advance.
<div class="form-group row">
<label for="Username" class="col-md-4 col-form-label text-md-right">{{ __('Username') }}</label>
<div class="col-md-6">
<input id="Username" type="text" class="form-control @error('Username') is-invalid @enderror" name="username" value="{{ old('Username') }}" required autocomplete="Username" autofocus>
@error('Username')
<span class="invalid-feedback" role="alert">
strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
See my comment below your question. A couple of things not mentioned in the post I referenced aree:
A. Blade code change B. Reflects on local machine C. Git commit D. Git push E. Git pull to remote server.
Occasionally, I have forgotten step 5 and stared in disbelief at the browser. Normally when I am tired. Unlikely, but worth a thought.
Check that you are calling the view you are expecting.
defaults routes are :
// Authentication Routes...
$this->get('login', 'Auth\LoginController@showLoginForm')->name('login');
$this->post('login', 'Auth\LoginController@login');
$this->post('logout', 'Auth\LoginController@logout')->name('logout');
// Registration Routes...
$this->get('register', 'Auth\RegisterController@showRegistrationForm')->name('register');
$this->post('register', 'Auth\RegisterController@register');
// Password Reset Routes...
$this->get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm');
$this->post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
$this->get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
$this->post('password/reset', 'Auth\ResetPasswordController@reset');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.