I am new to laravel.I want to add search button in my application like search in all website ,when i write a word it will search it in all pages and return the page where the word in red color. I make this code in layout
<form method="get" action="{{url('/create')}}">
<input type="text" name="search" id="search" placeholder="Search in site..." />
<button type="submit" class="btn btn-default"><img src="images/home/searchicon.png"></button>
</form>
and this in controller
public function create() {
$search = \Request::get('search');
////how to search in all pages
}
But I don't know how to search in all pages and this content isn't in database. Am I use javascript or package in laravel or what? please any one help me