How to implement search functionality in Laravel.

preview_player
Показать описание
Search functionality implementation in Laravel.

A simple laravel app to demonstrate how to implement a search feature to your laravel applications. Here I will tell you to implement search functionality in Laravel apps by querying a search term on the database and showing the results.

#laravel #php #search #justlaravel

Course Suggestion:

Channel related links :

-~-~~-~~~-~~-~-
Please watch my latest video: "Vue js CRUD Operations in Laravel - Working Demo"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Very helpful video. Much love from Kenya.

Brian-dbfm
Автор

like this very much! really straightforward and clear as well, keep up the good work bro!

joshuahadi
Автор

Hi i am trying to implement this and i am not getting any results when i use "if($q != ""){" but when i use "if($q != " "){" with a space in the quotes it prints all the users. Any help would be appreciated. Thank you.

Dinesh
Автор

thanks a lot for make this video, i'm from bangladesh..

sajeebdebnath
Автор

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
Автор

Thanks for sharing, it is very helpful!

elsabecrous
Автор

Is this method good for production? Also, in this video, you searched the user model/table.. is there a way to search the user table and searc another table too? for example, search user table or post table for LIKE 'q'.
Thanks for the video by the way.

inthebeginningwastheword
Автор

How to search in other relationship(one to one)?

gilbertkennethcaburnay
Автор

one of the important things which is required in search result and missing here is search result. if there is over 100s of data in single search query so it's not efficient to display all of them in single page. we need to paginate it with multiple pages but here i cant find something paginated search result.
thank you .

afghanboy
Автор

Thank you! I recommend to you to update the github code. Doesn't work with Laravel 5.4 and 5.5

juanrincon
Автор

Thanks for make this video,
Also, you can use this package for creating advanced query filter:

mohammadfouladgar
Автор

Thanks a lot for this useful tutorial, Can you tell us how to restrict the results to only the user input ?

For example : “b” will not show all users that has “b” in their names and emails.. The user should enter for example “bob” in search field to get only “bob” result with name and email. Thanks :)

QWebmaster
Автор

please make multi input search functionality. Thanks

geoffreyngugi
Автор

so you spent 15 minutes on single keyword search!!! How to handle if the search is with two words bro?

MustafaBirsoz
Автор

i almost can't understand you, can you speak more clearly and slowly

neilaldenescobin
Автор

this is not advance search... it is only instance search... Advance search like 1 million records in few second.. do not confuse people.

MrPrasadpankaj
Автор

bro...it seems like you got something in your mouth while you are speaking

arthurbouabeyivaza
Автор

it is totally stupidity, very one know this....

MrPrasadpankaj
visit shbcf.ru