Download the PHP package ahmetbarut/laravel-full-search without Composer

On this page you can find all versions of the php package ahmetbarut/laravel-full-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-full-search

Laravel Full Search

Allows searching on multiple models. The advantage of this for us; a separate search field is not required for each model.

Example

Features

Installation

Configuration

All configurations related to the model are made from the config/fullsearch.php file.

published config

view side

The @stack('scripts') directive must be defined on the view side, otherwise it will not work.

If you are using macos, you can open the search window with the cmd + K key combination.

Usage

You need to configure the config/fullsearch.php file for use.

In this way, you can search the title, id and body fields on the Post model. You can set the number of search results with the max_results parameter.

searchable => if true then search is possible. ability => if false then search is possible. If you want to restrict some models for certain users, you need to use Laravel Gate. I will explain it below. searchable_fields => specifies searchable fields. response_parameters => specifies the parameters to be displayed in the search result. route => specifies the routes to show in the search result. max_results => specifies the number of search results.

Restrict Specific Users

Users must have 'admin' authority to search on them. If you do not have admin privileges, you cannot search. It does not return an error message that it cannot search, it just returns an empty array.

Let's talk about response_parameters and route['parameters']. The response_parameters parameter specifies the parameters to be displayed in the search result. The route['parameters'] parameter specifies the routes to be displayed in the search result. If you have noticed now, the name column has come across the name parameter in the response_parameters, so the name column will be shown as a return. If we want, we can email it.

The column to be displayed must be defined in searchable_fields.

Now let's deepen on route['parameters']. Similar usage exists in response_parameters.

It will be like this /user/[email protected].


All versions of laravel-full-search with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version >=8.0
phpunit/phpunit Version ^9.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ahmetbarut/laravel-full-search contains the following files

Loading the files please wait ...