Загрузка...

#13 Make Dating Website in Laravel 5.6 | Redirects Users to Dating Form | Validations

In Part-13, we will add register link in Member Login and then will directly redirects the user to dating form once he registers. We will also add jQuery validations to our dating form.

1) Update front_sidebar.blade.php file :-

We will update front sidebar to show the Register link so that user can click on it for registration process.

2) Update register function :-

Now we will update register function in UsesController and after saving the user, we will redirect the user to dating form. For that, we have to use Auth::attempt.

3) Update step2.blade.php file :-

Give some id and name to our dating form like datingForm.

4) Update main.js file :-

Now update main.js file to add validations for datingForm id. We can give required validations to fields like dob, gender, height, marital_status, about_myself and partner_details. And we will also give minimum length validations for about_myself and partner_details textarea.

5) Update step2 function :-

Now update step2 function to resolve the issue that will come due to empty variables. We need to add conditions for them.

See now we able to add validations as well. In next video, we will work on admin panel and show users there and admin can approve the user. So stay tune for next video..

Thanks for watching :)

Видео #13 Make Dating Website in Laravel 5.6 | Redirects Users to Dating Form | Validations канала Stack Developers
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять