Download the PHP package cleaniquecoders/global-search without Composer
On this page you can find all versions of the php package cleaniquecoders/global-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/global-search
More information about cleaniquecoders/global-search
Files in cleaniquecoders/global-search
Package global-search
Short Description A simplified global search for Laravel Scout
License MIT
Homepage https://github.com/cleaniquecoders/global-search
Informations about the package global-search
A simplified global search for Laravel Scout
A simplified global search URL endpoint for your application.
Installation
You are required to install Laravel Scout first, then choose which driver you preferred to use:
Then you can install the package via composer:
You can publish the config file with:
Usage
Configure your model so that it's searchable.
Next, add the following in your routes/api.php
:
You may now use the API search route in your front-end:
If you need to call within your application, from the back-end, you can use the search()
helper:
To add more search capabilities, you may add more enum values as in app/Enums/SearchType
class.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of global-search with dependencies
illuminate/contracts Version ^10.0 | ^11.0
laravel/scout Version ^10.0 | ^11.0
spatie/laravel-enum Version ^3.0 | ^4.0
spatie/laravel-package-tools Version ^1.14.0