GuidePremium
The Livewire front end for CoullWorks Blog for Laravel
Switch the blog to Livewire for live search suggestions, load more and in-place pagination, with every Livewire config key and the two components explained.
Updated 16 November 2026Back to the package pageBuy
The Livewire front end is the Blade front end with two parts made live: the search box suggests posts as you type, and listings load more posts or change page without reloading. Everything else (the article, the layout, the tokens, the views) is the Blade set, so the article layouts, the rail, the sidebar, the category filter and the list layout all come with it.
Install and turn it on#

The home page. The Livewire front end draws the same page as Blade, so this is the Blade capture. What Livewire adds (live suggestions under the search box, Load more, in-place paging) happens in the browser and has no still capture in the gallery yet.
- Install Livewire:
composer require livewire/livewire. The package works with Livewire 3 (with Filament 4) and Livewire 4 (with Filament 5). It is a suggestion, not a hard requirement, so Blade-only installs do not pull it in. - Set
'frontend' => 'livewire'inconfig/coullworks-blog.php. - Clear the config cache with
php artisan config:clear. - Open the blog and type two or more letters in the search box. Suggested posts appear under it.
If livewire/livewire is not installed, the package registers no Livewire component, so install it before you switch.
Styles and scripts#
Tailwind and Bootstrap work as they do for Blade: the default layout links the compiled stylesheet for the view set (blade.framework) and the Livewire components use that same set. See Blade front end.
When Livewire injects its own assets (its default), nothing more is needed. When you have turned injection off, the default layout prints Livewire's styles and scripts itself. If you use your own layout (blade.layout), put @livewireStyles in the head and @livewireScripts before the closing body tag.
On install the package replaces the four Blade components with Livewire versions, unless you mapped one yourself: blade.components.search becomes cwl::search, list becomes cwl::list, pagination becomes cwl::pagination and load_more becomes cwl::load-more.
The livewire config#
Publish it with php artisan vendor:publish --tag=cwb-livewire-config. It is written to config/coullworks-blog-livewire.php. The same keys can go in the livewire array inside config/coullworks-blog.php; that array wins over the file.
| Key | Default | Allowed values | What it changes |
|---|---|---|---|
suggestions | 5 | 1 to 10 | How many suggested posts the search box lists |
debounce | 300 | milliseconds | The quiet time after the last keystroke before it asks for suggestions |
search_limit | 30 | requests per minute per IP | How many suggestion requests one visitor may make. Past it the box shows a wait message and a Try again button |
more_limit | 60 | requests per minute per IP | The same limit for Load more and page-change requests |
The posts component#

The grid of cards under the lead post is what the posts component draws. Load more and in-place paging are interactive and have no still capture yet.
The posts component draws the list of cards under a listing or a search result. The listing page passes it its settings, and you normally never place it yourself. Its inputs are locked, which means the browser cannot change them between updates:
| Input | Meaning |
|---|---|
blogId, locale | Which blog and language the list belongs to |
kind | index, category, tag, author, archive or search |
entityId | The category, tag or author id, when the kind needs one |
year, month | The archive period |
term | The search term, for search |
mode | numbered (default) shows page links; loadmore shows a Load more button. Anything else is treated as numbered |
baseUrl, query | Where page links point, and the query string they keep |
What it does for a reader: Load more adds the next page of cards under the ones already shown and moves focus to the first new card, and the status line reads "Showing 24 of 40 posts" and then "All 40 posts shown". A page link changes the cards in place and the status reads "Page 2 of 4". If a request fails, the cards already on show stay and a Try again button appears. If the rate limit is hit, a wait message shows how many seconds to wait. The list follows a category's own page size and layout. The search page shows the same highlighted snippets as Blade when search highlighting is on.
The search-box component#

The search page with "tent" typed in: a labelled box, an orange Search button and one result. With Livewire, a short list of suggested post titles also appears under the box as you type; that dropdown has no still capture yet.
The search box is a normal form that sends a GET request to the search page, so it works with no JavaScript. Livewire only adds the suggestion list.
- It asks for suggestions once the term is two or more characters, after the
debouncepause, and shows up tosuggestionspost titles, each a link to its post. The term is cut to 100 characters. - The matched words are marked in each suggested title. For the term
lara, the suggestion "Laravel tips" showsLaramarked. The title is escaped text with only the mark added. - Suggestions are asked for again on every render, never kept, so a draft or an unpublished post can never appear in one.
- States: no suggestions reads "No posts match"; a failed lookup shows an error with Try again; being over
search_limitshows the wait time. - Its inputs are locked:
blogId,localeandaction(the search page address).termis the text in the box.
Override the Livewire views#
The two component views are published with php artisan vendor:publish --tag=cwb-livewire-views-tailwind or --tag=cwb-livewire-views-bootstrap into resources/views/vendor/coullworks-blog-livewire. A copy there wins over the package view. The seven Livewire interface strings (status line, all shown, page status, suggestions count, no match, suggestion list label, Try again) are in the livewire language file of the coullworks-blog namespace. The other interface strings are described in Choosing a front end.
Screenshots of the Livewire front end#
The captures below are of the Livewire front end itself, in both view sets.
Livewire with Tailwind#

The Livewire Tailwind listing on a 1440 px window.

The Livewire Tailwind listing at 390 px: the category pills wrap and the posts stack in one column.

The Livewire Tailwind article page at 1440 px.

The Livewire Tailwind article page at 390 px. The contents sit in a collapsed On this page control.

The Livewire Tailwind search page showing the one result for "tent".

The Livewire Tailwind Figure lightbox open. The same dialog is used in every front end.
Livewire with Bootstrap#

The Livewire Bootstrap listing on a 1440 px window.

The Livewire Bootstrap listing at 390 px: the category pills wrap and the posts stack in one column.

The Livewire Bootstrap article page at 1440 px.

The Livewire Bootstrap article page at 390 px. The contents sit in a collapsed On this page control.

The Livewire Bootstrap search page showing the one result for "tent".

The Livewire Bootstrap Figure lightbox open. The same dialog is used in every front end.







