Laravel Search with Relationships Posts, Users, and Categories

preview_player
Показать описание
In this tutorial, you'll learn how to implement a powerful search functionality in a Laravel application using relationships between models.
By the end of this tutorial, you'll have a solid understanding of how to search for related models in Laravel, which will be a valuable skill for building more complex applications.

#search #laravel #laraveltutorial
Рекомендации по теме
Комментарии
Автор

I implement your PostModel and why it doesn't work here?

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'osas_services.post_models' doesn't exist (Connection: mysql, SQL: select * from `post_models` where exists (select * from `students` where `post_models`.`user_id` = `students`.`user_id` and (`student_number` like %ana% or `year_level` like %ana% or `status` like %ana%)) or exists (select * from `users` where `post_models`.`user_id` = `users`.`user_id` and (`first_name` like %ana% or `middle_name` like %ana% or `last_name` like %ana%)))

leinah
Автор

bro put some lit ass music and thought we wouldn't notice

Stikmanas
Автор

where did you get $request->search ?
I don't have such method

muhammadaly...
Автор

Good word sir ! I want to know how to do the multi search( search by name and email) with pagination in laravel ajax

moussasangare