Instant Search With Laravel and Vuejs Use ( Debounce )

  Рет қаралды 17,770

Code Inspire

Code Inspire

Күн бұрын

Пікірлер: 61
@Treyson123
@Treyson123 5 жыл бұрын
Again thank you very much for sacrifice and selflessness to make this Tutorial...God bless you
@amrraouf3525
@amrraouf3525 4 жыл бұрын
It has been informative indeed
@YungGudGalaxy
@YungGudGalaxy 5 жыл бұрын
This doesn't work with pagination. If you search for something and go to next page it returns all records instead of search term. How can this be fixed?
@tokke9345
@tokke9345 5 жыл бұрын
Change your GetResults function to getResults(page = 1) { if(this.$parent.search === ""){ axios.get('api/user?page=' + page) .then(response => { this.users = response.data; }); } else{ Fire.$emit('searching', page); } }, Next add the optional parameter to the searching event: Fire.$on('searching', (page = 1) => {...... You're welcome!
@marcaldrindelacruz4625
@marcaldrindelacruz4625 3 жыл бұрын
@@tokke9345 full codes please
@ArdeeTechPH
@ArdeeTechPH 4 жыл бұрын
Hello, i tried applying the same codes to other component (which has pagination). In my Vue console, it displays the items matched with the keyword I search. However, it doesn't apply to may table rows. I'm getting the error, '[Vue warn]: Error in render: "TypeError: Cannot read property 'name' of undefined"' and "app.js:78027 TypeError: Cannot read property 'name' of undefined" By the way, I applied Relational database to this component.
@pura1505
@pura1505 5 жыл бұрын
awesome bro, I love your tutorial videos.
@caotoanbk
@caotoanbk 5 жыл бұрын
thank you for great tutorial, but when i search and click the paginate button search not working, can i remain search data when click paginate button? Thanks you
@alzaidiendi2707
@alzaidiendi2707 5 жыл бұрын
Great tutorial, Thank you very much.
@cedriclabrador5353
@cedriclabrador5353 3 жыл бұрын
How to search with join table?
@Paul-oz5se
@Paul-oz5se 5 жыл бұрын
Great tutorial on how to use the search function. Can you teach me how to search from multiple tables and output it in one page?
@angelamolina5599
@angelamolina5599 5 жыл бұрын
why im having _.debounce is not a function?
@zharifarzaq5236
@zharifarzaq5236 5 жыл бұрын
can u make relation database bro, much appreciate it
@leonelapor5003
@leonelapor5003 5 жыл бұрын
This is so nice! Thanks!
@abhaypkyek
@abhaypkyek 6 жыл бұрын
Sir, is it possible to have calculated fields in a table, like how we do in Excel. Like a+b=c. We fill a and b in form, c will be calculated automatically in the next column(cell) of the table. Tried searching for it, no luck. Pls help.
@CodeInspire
@CodeInspire 6 жыл бұрын
It is possible. But, it can't calculate by default. updating a + b can't change value of 'C' you should do in controller.
@abhaypkyek
@abhaypkyek 6 жыл бұрын
@@CodeInspiresuper sir. Thanks. If possible help with this, in any of the future video series.
@optimizeit
@optimizeit 6 жыл бұрын
Thank you! it was very useful course. I will be very good if you will add to that course the work with some other tables like users post or articles which can be many. Because now we only know how to change user table but not related pages with him.
@loremipsum574
@loremipsum574 6 жыл бұрын
Another great tutorial.
@junjun22able
@junjun22able 6 жыл бұрын
Hello Sir, why i'm getting this error "Uncaught ReferenceError: _ is not defined" when I use the debounce inside my component methods?
@CodeInspire
@CodeInspire 6 жыл бұрын
Do you have lodash installed ??
@junjun22able
@junjun22able 6 жыл бұрын
@@CodeInspire yes, actually it works when I tried to put it inside the methods property of the parent or root component. What did i just do is I declare it in created method of the child component and it works. I just don't know why in child components methods it doesn't work.
@adam192021
@adam192021 6 жыл бұрын
The BEST as always!
@le_chef_okami
@le_chef_okami 4 жыл бұрын
You can do "$this->index();" for the else condition :)
@q536345
@q536345 5 жыл бұрын
Thank you so much, this is really awesome.
@a_rob
@a_rob 6 жыл бұрын
great work! thank you so much!
@ziikyii2463
@ziikyii2463 6 жыл бұрын
when i have more components, it keep sending request to old components and new one and got Too many request error :'(
@CodeInspire
@CodeInspire 6 жыл бұрын
you to many components in one page ?
@ziikyii2463
@ziikyii2463 6 жыл бұрын
Code Inspire omg yeah, i put it all under one parent so i can skip rewriting ‘/admin’ path. u r a really great teacher
@ahmedshamndy6849
@ahmedshamndy6849 6 жыл бұрын
great work
@pauljoseph7432
@pauljoseph7432 6 жыл бұрын
hello mate, great tutorial but mine got an error. It says "Error in render: TypeError: Cannot read property 'toUpperCase' of undefined" and "TypeError: Cannot read property 'toUpperCase' of undefined ". How can i fix it? thanks
@CodeInspire
@CodeInspire 6 жыл бұрын
When you got that error?? is it in current video ?
@pauljoseph7432
@pauljoseph7432 6 жыл бұрын
@@CodeInspire Somehow i fixed it because i skipped the vue paginate hehehe.
@getwister
@getwister 6 жыл бұрын
Great tutorial! Still waiting How customize the application.
@md.ikramurrashidshagor4401
@md.ikramurrashidshagor4401 5 жыл бұрын
Great tutorial.. 😍😍 I just need a help... how can we adjust the search functionality with pagination? When I move to the next page, it's not working. Can you help me...
@samiulislam7839
@samiulislam7839 6 жыл бұрын
Can any episode for drop-down select with vueform
@CodeInspire
@CodeInspire 6 жыл бұрын
It works the same why. We used in for user-type in select option.
@Cybersix6666
@Cybersix6666 5 жыл бұрын
how about showing us how to send emails ? great series !
@amined801
@amined801 6 жыл бұрын
why u don't use client side, i think it is must faster and very convenient for the server
@a_rob
@a_rob 6 жыл бұрын
client side should be used for small data sets, for example a few thousand records. but if you have millions of records then imagine what will happen, you may run out of memory and your browser may crush. use appropriate one for a specific need. hope you agree.
@CodeInspire
@CodeInspire 6 жыл бұрын
Awesome answer. :)
@amined801
@amined801 6 жыл бұрын
@@a_rob thank u for details
@pastuh
@pastuh 4 жыл бұрын
i think simpler is just write function with timeout, use lodash for one function looks strange :X
@sodbayarbatzogsokh7553
@sodbayarbatzogsokh7553 6 жыл бұрын
Thank you very much.
@justsoeasycom
@justsoeasycom 6 жыл бұрын
It's a wonderful series, indeed. Just a suggestion, why don't you have a patreon/paypal account so that anyone could support your good works through donation. Since you said you need a convenience place to record your videos . I adorn you!
@CodeInspire
@CodeInspire 6 жыл бұрын
Thank you so much buddy. :) I get inspire by helping people like you. I will make a Patreon later :)
@justsoeasycom
@justsoeasycom 6 жыл бұрын
Please can I have your email?
@CodeInspire
@CodeInspire 6 жыл бұрын
@@justsoeasycom Yeah sure, upplanetsite@gmail.com
@hussainwael1079
@hussainwael1079 6 жыл бұрын
Hello, sir, first of all, thank you very much I learned a lot and you are awesome, but I did every single thing with you for search and it sends the request but the result doesn't show in my user's table ?! I even copied your code and still the same with no errors!
@CodeInspire
@CodeInspire 6 жыл бұрын
Did you watch previouse video ?? this video is based on previouse episode
@mangarific1
@mangarific1 5 жыл бұрын
Didn't know Khabib was a programmer
@technogeek5885
@technogeek5885 5 жыл бұрын
Hey Code inspire great video. Can't say how much I appreciate your lessons. I have me a small bug in my search not sure why. In my console log, I get this error "TypeError: Cannot read property 'id' of null" found in ---> at resources/js/components/Users.vue AND THIS ONLY HAPPENS WHEN I USE THIS Fire.$on('searching',() => { let query = this.$parent.search; axios.get('api/findUser?q=' + query) .then((data) => { this.users = data.data }) .catch(() => { }) }) this.loadUsers(); Fire.$on('AfterCreate',() => { this.loadUsers(); }); in my network tab, the server is sending me back data. But the page is not updating with the new search results. Not sure where I am going wrong. can you please help me with this. Thanks
@averyhernandez566
@averyhernandez566 5 жыл бұрын
Did you include id: '' in your form data object?
@sachinshr84
@sachinshr84 5 жыл бұрын
I am having the similar issue. Did you find the solution to it? And yes @Avery Hernandez, I have included id in form data object.
@averyhernandez566
@averyhernandez566 5 жыл бұрын
@@sachinshr84 I don't remember if I faced the same issue, sir. The problem that I remember was about making sure that I use object ({}) rather than array ([]). In addition to that, check if you properly bind it. I also suggest for you to view the docs of the package. This might help you. 🙂
@sachinshr84
@sachinshr84 5 жыл бұрын
Thanks @Avery Hernandez. I got the solution to it. I need to use data.data.data instead of just using it twice as the solution. Hope this will solve the issue of @Technogeek too.
@averyhernandez566
@averyhernandez566 5 жыл бұрын
@@sachinshr84 Nice to know that, sir. Happy coding! :D
@JavierHernandez-jg3wo
@JavierHernandez-jg3wo 6 жыл бұрын
The best
@bithub-Channel
@bithub-Channel 6 жыл бұрын
thanks you
@kosticnemanja1914
@kosticnemanja1914 4 жыл бұрын
if q != ' ' call axio.get else call this.loadUsers
@elbananerosoyyooo8394
@elbananerosoyyooo8394 5 жыл бұрын
en ESPAÑOL ... TIO no entiendo ni MIERDAAAAA
Print Invoice as PDF in Laravel using JavaScript
6:10
Code Inspire
Рет қаралды 61 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Limited Access to Controllers Using ACL in Laravel
7:46
Code Inspire
Рет қаралды 10 М.
Event Sourcing for .NET Developers: From Zero to Implementation
19:55
Milan Jovanović
Рет қаралды 9 М.
Why Are Scientists Making Robot Insects?
21:16
Veritasium
Рет қаралды 2,2 МЛН
How to code game logic
14:00
Game Dev Beginner
Рет қаралды 10 М.
Configure Vue Router to Laravel 5.7 and Admin LTE 3
11:28
Code Inspire
Рет қаралды 70 М.
Вложил 900тр. в ВАЗ 21099, а она не едет :(
1:26:39
ИЛЬДАР АВТО-ПОДБОР
Рет қаралды 590 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН