Laravel search function, Search data in database using Model

Laravel search function, Search data in database using Model

Code Online

4 года назад

66,063 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Utkarsh Shukla
Utkarsh Shukla - 02.04.2023 17:32

Thanks bro

Ответить
Ochieno Eliud
Ochieno Eliud - 28.03.2023 07:10

Very helpful, thank you!

Ответить
Darmowy Kurs Grafiki
Darmowy Kurs Grafiki - 14.09.2022 10:42

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

Ответить
Bry Reyes
Bry Reyes - 02.09.2022 11:08

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

Ответить
Renato travassos
Renato travassos - 18.07.2022 02:28

thanks bro

Ответить
Trez Studio
Trez Studio - 07.07.2022 14:47

I need help

Ответить
yaman hafez
yaman hafez - 18.06.2022 01:38

Thank Youu

Ответить
Kristaps B-D
Kristaps B-D - 17.05.2022 22:22

Lifesaver! Subbed and cant wait for more

Ответить
Commercial-Center
Commercial-Center - 12.04.2022 15:53

"404" x_x

Ответить
Lionel Muskwe
Lionel Muskwe - 10.04.2022 03:41

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

Ответить
Patric Jerold
Patric Jerold - 21.03.2022 13:13

I need search.blade.php code....

Ответить
Teteeu14
Teteeu14 - 13.01.2022 23:47

Thank you, nice tutorial

Ответить
Ryan Hernando
Ryan Hernando - 12.01.2022 09:42

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

Ответить
Slap
Slap - 30.12.2021 18:57

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

Ответить
Bonheur Tuyikunde
Bonheur Tuyikunde - 13.12.2021 13:42

Thanks man. It is simple and easy yet works.

Ответить
Danish Mirza
Danish Mirza - 02.10.2021 13:22

404
NOT FOUND

Ответить
Phạm Văn Hoài
Phạm Văn Hoài - 20.08.2021 19:58

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

Ответить
Edvard Aliev
Edvard Aliev - 17.08.2021 19:50

Спасибо мужик! Выручил!

Ответить
co vo
co vo - 06.08.2021 20:22

I always get target class controller does nog exist

Ответить
Mrdr
Mrdr - 04.06.2021 11:02

public function search()
{
$search_text = $_GET ('query');
$products = Product::where('title','LIKE','%'.$search_text, '%')->get();
return view('products.search',compact('products'));
}

Ответить
Omar Elio Torres Castillo
Omar Elio Torres Castillo - 31.05.2021 10:44

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

Ответить
Adawiyah Abd Jalil
Adawiyah Abd Jalil - 21.05.2021 05:55

hye! how to search with different table database?

Ответить
Oeng Kim Chhay
Oeng Kim Chhay - 26.02.2021 12:10

thanks for ur videos I love it

Ответить
Artur Khachatryan
Artur Khachatryan - 17.12.2020 17:42

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

Ответить
B Micke
B Micke - 28.11.2020 14:30

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?

Ответить
Edwin Ombati
Edwin Ombati - 23.11.2020 22:51

thanks man keep it up

Ответить
Mohamed Noaman
Mohamed Noaman - 16.11.2020 13:39

Good job.. clean code wish you the best

Ответить
Ahsan Khan
Ahsan Khan - 02.10.2020 20:02

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

Ответить
Myat
Myat - 21.09.2020 12:52

Thanks you your code online

Ответить
Abdelhak Darbeida
Abdelhak Darbeida - 17.09.2020 23:44

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

Ответить
No One
No One - 16.09.2020 02:50

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.

Ответить
Marija Stevanovic
Marija Stevanovic - 03.07.2020 13:29

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

Ответить
Deyna B.
Deyna B. - 14.06.2020 10:33

Thank you so much! You helped me a lot!

Ответить
Designer and Programmer
Designer and Programmer - 08.05.2020 13:44

Beautiful..keep it up...

Ответить
Gagan Pokharel
Gagan Pokharel - 08.05.2020 06:25

Keep it up man👏😍

Ответить
Code Dose
Code Dose - 07.05.2020 17:17

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

Ответить