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...
  • ХоббиХобби

Комментарии • 39

  • @charanahansa752
    @charanahansa752 2 года назад

    Very good lesson 👍👏💯

  • @duckhead2948
    @duckhead2948 3 года назад +1

    its working! now i can use modal to store data with live validation. thak you

  • @shamsiddintolaganov4772
    @shamsiddintolaganov4772 3 года назад +1

    Thank you so much. useful video

  • @musiclovers8488
    @musiclovers8488 Год назад +1

    awesome thankyou

  • @RealesDarren
    @RealesDarren 2 месяца назад

    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

  • @Avefenixfuego8
    @Avefenixfuego8 2 года назад

    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

  • @hakamatata1666
    @hakamatata1666 2 года назад +1

    Thanjs for the tutorial!
    Buat i have some problem, why my error msg not showing under the field? Although i follow every instructor

  • @kanagadaraviswanathan3231
    @kanagadaraviswanathan3231 2 года назад +1

    how to customize the error message?

  • @tharushafernando6688
    @tharushafernando6688 2 года назад +1

    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??

  • @vanatachannel2262
    @vanatachannel2262 2 года назад

    Thankyou sir..

  • @rijalaf724
    @rijalaf724 Год назад

    thx you very very very much

  • @notkylo1881
    @notkylo1881 2 года назад

    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!

  • @bobevo1616
    @bobevo1616 Год назад

    POST 405 (Method Not Allowed )>> any solutions?

  • @andesta2133
    @andesta2133 2 года назад +1

    Thank youu

  • @prog_ramming_brains
    @prog_ramming_brains 2 года назад +1

    The errors do not disppear even after filling the fields

  • @adeyemiadeshina3988
    @adeyemiadeshina3988 2 года назад +1

    Thanks you

  • @alphonsesossou4283
    @alphonsesossou4283 3 года назад

    Great tutorial. Thanks. But how to customize the error messages ?

  • @AlphaTVShorts
    @AlphaTVShorts 2 года назад

    when i use !$validator->passes() statment , passes() gives error : undifenid method

    • @irebelibrary
      @irebelibrary  2 года назад

      I believe that you probably have
      use Illuminate\Validation\Validator;
      or
      use Validator;

  • @muhammadans2193
    @muhammadans2193 3 года назад +2

    how to save data using javascript fetch function, please make a video

    • @irebelibrary
      @irebelibrary  3 года назад

      Thank you Muhammad Ans. Yes will will make that tutorial soon

    • @muhammadans2193
      @muhammadans2193 3 года назад

      @@irebelibrary thank you

  • @relaxingmusicandsceneryfor5816
    @relaxingmusicandsceneryfor5816 3 года назад

    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!!!

    • @irebelibrary
      @irebelibrary  3 года назад

      Have you add backslash before Validator like this?
      \Validator::make()

    • @relaxingmusicandsceneryfor5816
      @relaxingmusicandsceneryfor5816 3 года назад

      @@irebelibrary I tried just now, still the same, It has the red underline, use Validator is imported.

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      Maybe is you extention of php inthelisense in vscode

  • @yahaha2719
    @yahaha2719 2 года назад +1

    hey, what's the name of this vscode theme and icon? can u tell me?

    • @irebelibrary
      @irebelibrary  2 года назад

      Hi Yura.
      Vs Code Theme I use : One Dark Pro
      Vs Code File Icons: Material Icon Theme
      Search them and install. thank you

    • @yahaha2719
      @yahaha2719 2 года назад

      @@irebelibrary thankyou so much bro👍

  • @shehan.akalanka
    @shehan.akalanka 3 года назад +1

    I tried this but my form is refreshing,why is that?

    • @prog_ramming_brains
      @prog_ramming_brains 2 года назад

      jQuery("#name og your form").on('submit',function(e){
      e.preventDefault();
      add e.preventDefault() as shown above to prevent page from reload

  • @rahulkrishna7810
    @rahulkrishna7810 2 года назад +1

    this is client side or server side ?