Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions resources/js/stories/docs/Listing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The `Listing` component can pull data from a JSON endpoint.
{
$query = TeamMember::query();

if ($search $request->input('search')) {
if ($search = $request->input('search')) {
Comment thread
duncanmcclean marked this conversation as resolved.
$query->where('name', 'like', "%{$search}%");
}

Expand Down Expand Up @@ -116,8 +116,8 @@ class TeamMemberActionController extends Controller
Next, add two routes pointing to the controller:

```php
Route::get('team-members/actions', [TeamMemberActionController::class, 'run']);
Route::get('team-members/actions/list', [TeamMemberActionController::class, 'bulkActions']);
Route::post('team-members/actions', [TeamMemberActionController::class, 'run']);
Route::post('team-members/actions/list', [TeamMemberActionController::class, 'bulkActions']);
```

Finally, pass the URL for the first route to the `actionUrl` prop:
Expand Down
Loading