Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть #115

  • Stack Developers
  • 2019-03-11
  • 1450
#115
laravel ecommake ecom in laravel 5.8create e-commerce website in laravel 5.8update to laravel 5.8upgrade laravel project to 5.8laravel validationslaravel 5.8 validationslaravel contact form validationslaravel form validationsmigrate to laravel 5.8update ecom website laravel
  • ok logo

Скачать #115 бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно #115 или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку #115 бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео #115

In Part-115 of E-com Series, we will first upgrade our Laravel 5.7 project to Laravel 5.8 that recently launched and after that we will add Laravel validations to the contact form.

1) Update composer.json file :-
First of all, update laravel/framework to 5.8.* from 5.7.* at composer.json file located at the root of our Laravel project.

2) Run "composer update" command :-
Now run "composer update" command to upgrade laravel 5.7 to 5.8 of our Laravel project. Verify once with php artisan --version to make sure laravel version has been updated to 5.8

Now we can continue working on Contact form and will add Laravel validations this time. We can take help from below Laravel link :-
https://laravel.com/docs/5.8/validation

3) Update contact function :-
Update contact function located at CmsController and write validator code for name and email as shown in video.

4) Update contact.blade.php file :-
Now update contact.blade.php file to display the error if validation fails for name or email. You can check this at Laravel website https://laravel.com/docs/5.8/validati... under "Displaying The Validation Errors" section.

5) Update Header Statement :-
Now add below statement at the top of CmsController :-
use Validator;

Check now validation is working fine. Now we will make it more secure by adding more options in validation.

6) Update contact function :-
We want to allow the user to add alphabets only and laravel provides alpha option but it will not allow spaces so we will search on net for better solution.

Search for the keyword like 'laravel validation for alphabetic characters and spaces' and open below stackoverflow link to find the solution.

https://stackoverflow.com/questions/3...

We will add regular expression for allowing alphabets with spaces as shown in video.

We can add other validation rules as well from Laravel website :-
https://laravel.com/docs/5.8/validati...

Thanks for watching :)

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]