Download the PHP package zofe/search-module without Composer
On this page you can find all versions of the php package zofe/search-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zofe/search-module
More information about zofe/search-module
Files in zofe/search-module
Package search-module
Short Description search module for laravel rapyd-livewire application
License mit
Informations about the package search-module
Search Module
This is a demo module for a Laravel application (>= 8)
Search module is designed to centralize the logic of a "global search" in the project.
Installation & configuration
By default, this "field" search in a list of models you can define in the config file, for each model you need to specify:
- the class
- the query scope
- the route (to link at result detail)
- the query limit
- the view (of the result item, to customize item appareance)
Layout
Note that this module will install/use layout-module, you may need to do:
this will compile scss and copy css assets to your public project folder
Usage
This command will create a folder "Search" in your /app/Modules/ folder.
this component:
/app/Modules/Search/Components/SearchNavbar.php
has the logic of "global search" in the project. searches the users, and potentially the main models of all other installed modules.
Customizing Module
To customize the module code, we recommend forking the original package repository on GitHub and making changes there. This way, you can maintain a separate branch for your changes, while also keeping up-to-date with the latest releases of the package.
To install your forked version of the package in your Laravel application, you can reference your forked repository in the composer.json file of your Laravel application using the "vcs" package type. Here's an example of what you can add to your composer.json:
Replace <your-github-username>
with your GitHub username and <package-name>
with the name of your forked package repository.
After adding your forked repository to composer.json, you can require your customized package in the same way you would require the original package:
Replace <your-github-username>
, <package-name>
, and <your-branch-name>
with the appropriate values for your forked repository and branch.
By using this approach, you can easily customize the module code while also keeping your code up-to-date with the latest releases of the package.
We encourage developers to make changes that could be useful to the wider community and contribute back to the original package repository via pull requests. This can help improve the package for everyone and ensure that your changes are integrated with the latest releases of the package.
All versions of search-module with dependencies
illuminate/config Version ^8.65|^9.0|^10.0
illuminate/contracts Version ^8.65|^9.0|^10.0
livewire/livewire Version ^2.0
zofe/rapyd-livewire Version dev-main|^0.8
zofe/rapyd-module-installer Version ^0.0|^0.1
zofe/layout-module Version dev-main|^0.0|^0.1