{"id":34004432,"url":"https://github.com/globalia/laravel-scout-mysql","last_synced_at":"2026-04-02T17:29:49.953Z","repository":{"id":62511243,"uuid":"98049707","full_name":"globalia/laravel-scout-mysql","owner":"globalia","description":"A MySql Engine for Laravel Scout ","archived":false,"fork":false,"pushed_at":"2017-07-25T17:05:06.000Z","size":31,"stargazers_count":24,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-28T23:08:48.809Z","etag":null,"topics":["driver","laravel","laravel-scout","mysql","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globalia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-22T18:15:46.000Z","updated_at":"2023-12-22T03:14:03.000Z","dependencies_parsed_at":"2022-11-02T10:17:10.049Z","dependency_job_id":null,"html_url":"https://github.com/globalia/laravel-scout-mysql","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/globalia/laravel-scout-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalia%2Flaravel-scout-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalia%2Flaravel-scout-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalia%2Flaravel-scout-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalia%2Flaravel-scout-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globalia","download_url":"https://codeload.github.com/globalia/laravel-scout-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globalia%2Flaravel-scout-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["driver","laravel","laravel-scout","mysql","php"],"created_at":"2025-12-13T10:05:18.224Z","updated_at":"2026-04-02T17:29:49.919Z","avatar_url":"https://github.com/globalia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Scout MySQL Driver\n\nThis package is a [MySQL](https://www.mysql.com/) driver for Laravel Scout.\n\n## Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Credits](#credits)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer config repositories.globalia/laravel-scout-mysql git https://github.com/globalia/laravel-scout-mysql.git\n\ncomposer require \"globalia/laravel-scout-mysql\" \"^1.0\"\n```\n\nYou must add the Scout service provider and the package service provider in your app.php config:\n\n```php\n// config/app.php\n'providers' =\u003e [\n    ...\n    Laravel\\Scout\\ScoutServiceProvider::class,\n    Globalia\\LaravelScoutMysql\\ScoutMysqlServiceProvider::class,\n],\n```\n### Setting up database search indexes table:\n\n```php\nphp artisan migrate\n```\n\nAfter you've published the Laravel Scout package configuration:\n\n```php\n// config/scout.php\n// Set your driver to mysql\n    'driver' =\u003e env('SCOUT_DRIVER', 'mysql'),\n```\n\n## Usage\n\nHere is an example of how to use the engine:\n\n```php\n    $result = Todo::search($term)\n        -\u003ewhere('boost(name)', 5)\n        -\u003ewhere('boost(tags)', 2)\n        -\u003ewhere('checked', 1)\n        -\u003ewhere('published_at \u003e=', \\Carbon::now());\n\n    return null === $limit ? $result-\u003eget() : $result-\u003epaginate($limit);\n```\n\nInstead of using the \"Laravel\\Scout\\Searchable\" trait, use this \"Globalia\\LaravelScoutMysql\\Models\\Concerns\\HasSearchIndex\"\n\notherwise you can use Laravel Scout as described in the [official documentation](https://laravel.com/docs/5.4/scout)\n\n### Searching in all models\n\nSince the index table is a model, you can search in it directly. Each result will be hydrated to its corresponding model.\n\n```php\n    $result = SearchIndex::search($term);\n```\n\n\n## Credits\n\n- [Globalia](https://github.com/globalia)\n- [All Contributors](../../contributors)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalia%2Flaravel-scout-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobalia%2Flaravel-scout-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalia%2Flaravel-scout-mysql/lists"}