Support the ongoing development of Laravel.io →
posted 10 years ago
Input

I have a very basic CRUD application for displaying entries in a mysql table, and would like to do a very basic full-text search across the table fields.

I've google'd far and wide, but cannot find any Laravel 5 beginner tutorials for implementing something as basic as a simple fulltext search. All the blog posts I came across were either incomplete or for Laravel 4.

Any pointer to a concise tutorial on basic search or fulltext search in L5 would be greatly appreciated!

(n00b alert!)

Last updated 3 years ago.
0
$models = Model::whereRaw("MATCH(field, another) AGAINST (? IN BOOLEAN MODE)", [$searchText])->get();
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.