Laravel search function, Search data in database using Model

preview_player
Показать описание
We added search feature to filter out the data from our model in Laravel.
we saw how to query data and fetch the data using model.We can also use live search using AJAX search request.
#search #laravel10 #nodejs #filter #querybuilder
Рекомендации по теме
Комментарии
Автор

thank you. Although I have not learned programming, but watching your videos I can customize my website by myself. 👍

phamvanhoai
Автор

Thanks man. It is simple and easy yet works.

bonheurtuyikunde
Автор

Amazing video. Concise, effective and well explained. Thank you so much. I hope your channel grows well.

lionelmuskwe
Автор

Lifesaver! Subbed and cant wait for more

kristapsb-d
Автор

Thank you so much! You helped me a lot!

daybeamx
Автор

Not need $searc_text = $_GET['QUERY'];
Using Request or request helper;
public function search(Request $request){
$search_text = $request->get('query');
}

arturkhachatryan
Автор

Good job.. clean code wish you the best

fidoz
Автор

yeah, Thank you code online... now i can search easily

codedose
Автор

Thanks for the course #laravel #codeonline

codedose
Автор

thanks a lot you saved me from a big trouble 👍😍👏

abdelhakdarbeida
Автор

Brother. I am trying to remove the white space or ignore the white space between the column value on a where statement.

For example a user may search for "B35 TYE" or "B35TYE" postcodes, so i need to match on the where statement whether the DB has values stores with or without spaces.

$jobs->where('CollPCode', 'LIKE', '%'.$colpostcode.'%');
I want to show these both in suggestion list "B35 TYE" and "B35TYE". Any suggestion? Thanks

AhsanKhan
Автор

Application doesn't show search record on page, but when i write dd() function it show me the correct record

marijastevanovic
Автор

Thank you for the video. Do you offer a paid course on How to Create a Simple Rental System? The Transactions form must have an Input Search Box for Customers, and another input Search Box for Items, Due Borrowed, Date Due.

NoOne-qdyp
Автор

Hello, thank you for your video, i am making the same as you but in search users in a database, i did exactly the same as you but when i look for a user in the search field using submit button i get the "Not Found page 404", instead of products i am using users database, above in the Not Found page i get /search?query=ramon, but wit Not found page

omareliotorrescastillo
Автор

where does the category came from, ->with('category')

bryreyes
Автор

Hello my friend! You helped me a lot! Thank you :)

DarmowyKursGrafiki
Автор

hye! how to search with different table database?

adawiyahabdjalil
Автор

Omg u are so faking goood, thanks for help my friend <3

MortalKombatTS
Автор

i watched this full course man keep it up! but I'm having a problem with search function. Does it work on Laravel v5.4?

Shogunez
Автор

hello i want your help pls. guide me in my simple system projects
I hope that I can communicate with you sirr plss. help

ryanhernando
join shbcf.ru