Basic Form Validation In Laravel | Laravel For Beginners | Learn Laravel

preview_player
Показать описание
This video will show you how you could simply add validation on your requests in Laravel – Learn one of the most popular PHP frameworks for its advanced features, templating engine, fast commands and security.

📚 New Udemy Course

📲 Let’s plan a meeting

💌 Newsletter

🔥 Resources

Coding Gear

Recording Gear

Want to learn more?

📋 Table of Content
00:00 - Introduction
00:55 - Error messages for invalid input data
04:20 - Rules for validation
06:17 - How to print out errors in the UI
08:23 - Custom messages

#laravel #laravel8 #php #request
Рекомендации по теме
Комментарии
Автор

I have been learning laravel since last week...and here I am...got the best content on youtube. Thanku sir ....

InnerWorld
Автор

Thanks for teaching me Laravel from scratch.

dearbeargaming
Автор

Hello Dary. I really appreciate your content. I started your Laravel series yesterday night. But I'm on windows and I am facing difficulties installing Laravel properly. Can you please make a short video for the windows users to set up the environment properly? Waiting for your response bro

manto
Автор

Hello Dary,
I really like your content and learning a lot from you.

In this video you did 'name' => 'required|unique:cars' this only contains the table name. So how does laravel know which column to look for unique values in the table?

bloxzyo
Автор

Thank you for your tutorial!
What if i have multiple inputs with same name? How can i save that in the database in different row?
Exemple:

<input type="text" name="productName" required>
<input type="text" name="productName" required>
<input type="text" name="productName" required>
<input type="text" name="productName" required>

Thank you.

bieberbalazs
Автор

I have a question:
'name(input name)' => 'required|unique:cars(table name)'
How laravel will know that name_input should be check for uniqueness in only name_column of database?

junaidhassan
Автор

mistake at 5:33. right is: 'name' => ['required', 'uniq...', ... ]

o.r.b.