Created
February 8, 2023 12:53
-
-
Save sjardim/ee644682b9ed064f9105a1b38cb8c780 to your computer and use it in GitHub Desktop.
Laravel Meilisearch search with relationships
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//https://serversideup.net/advanced-meilisearch-queries-with-laravel-scout/ | |
$customers = Customer::search('Dan') | |
->query( function( $query ){ | |
$query->with('invoices'); | |
} )->get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment