Laravel 8 tutorial | Ajax Form validation and display errors on blade without page refresh
HTML-код
- Опубликовано: 27 дек 2020
- We can make ajax form validation and display errors on blade with ajax in laravel 8. in this video we will show you how to display error from controller under each input field without page refresh. This is an advanced Laravel JQuery Form Validation.
You can get source code of this project from link below:
github.com/Mbere250/Laravel-8... Хобби
Very good lesson 👍👏💯
Thanks for watching
its working! now i can use modal to store data with live validation. thak you
Great!
Im having an error whenever i use modal. Can i get your source code, pls?
@@latifatuzikrasuhairi9970 how to share it
Thank you so much. useful video
Thank you
awesome thankyou
if i put that unique thingy in the email it somehow give me this:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
but if i remove that unique all is well its just not able to identify if it is unique or not
Hello, it works perfectly thanks, but I see that the response time is relatively high.
700ms since I press save.
How can I do to improve the speed?
Thanks
Thanjs for the tutorial!
Buat i have some problem, why my error msg not showing under the field? Although i follow every instructor
how to customize the error message?
im getting validation error array completely printed on a blank screen
Not under input spaces in form i checked span tags and but couldn't find any error
Does anybody have a solution please??
Thankyou sir..
thx you very very very much
Sir! I got only required errors. And then I filled the name field and submit but I got required error again. How I can fix this Sir!
POST 405 (Method Not Allowed )>> any solutions?
Thank youu
The errors do not disppear even after filling the fields
Thanks you
Thank you too!
Great tutorial. Thanks. But how to customize the error messages ?
when i use !$validator->passes() statment , passes() gives error : undifenid method
I believe that you probably have
use Illuminate\Validation\Validator;
or
use Validator;
how to save data using javascript fetch function, please make a video
Thank you Muhammad Ans. Yes will will make that tutorial soon
@@irebelibrary thank you
everytime I copy paste your function save code to my controller, I always have a red underline on Validator::make even I already added use Validator on my controller.
any suggestion how to fix this ?
thanks for the tutorial!!!
Have you add backslash before Validator like this?
\Validator::make()
@@irebelibrary I tried just now, still the same, It has the red underline, use Validator is imported.
Maybe is you extention of php inthelisense in vscode
hey, what's the name of this vscode theme and icon? can u tell me?
Hi Yura.
Vs Code Theme I use : One Dark Pro
Vs Code File Icons: Material Icon Theme
Search them and install. thank you
@@irebelibrary thankyou so much bro👍
I tried this but my form is refreshing,why is that?
jQuery("#name og your form").on('submit',function(e){
e.preventDefault();
add e.preventDefault() as shown above to prevent page from reload
this is client side or server side ?
Server side validation