Skip to content

rapidez/fullscreen-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapidez Fullscreen Search

Installation

composer require rapidez/fullscreen-search

To use the views from this package instead of the default ones, you'll need to publish the "core overwrite views" with the following command:

php artisan vendor:publish --provider="Rapidez\FullscreenSearch\FullscreenSearchServiceProvider" --tag=core-overwrites

Configuration

Don't forget to add this to your config:

tailwind.config.js

'header-autocomplete-popup': '40',

config/rapidez/frontend.php

'autocomplete' => [
    'additionals' => [
        'history'            => [],
        'search-suggestions' => [],
        'categories'         => [
            'defaultValues' => fn () => config('rapidez.models.category')::where('parent_id', config('rapidez.root_category_id'))
                ->limit(config('rapidez.frontend.autocomplete.additionals.categories.size', config('rapidez.frontend.autocomplete.size', 4)))
                ->get(),
        ],
        'popular-products' => ['size' => 4],
        'products' => [
            'size' => 4,
        ],
    ],
    'size' => 4,
],

Views

You can publish the views with:

php artisan vendor:publish --tag=rapidez-fullscreen-search-views

License

GNU General Public License v3. Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •