Search! Closes #38

Squashed commit of the following:

commit edc3e917d710f34c2ac487474db37a8acf2134c9
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Fri Nov 25 19:51:32 2016 +0000

    Update changelog

commit 78668c68557c4121bf4b8862b76102ac87c81787
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Fri Nov 25 19:50:39 2016 +0000

    Add the search feature

commit dfe8447dcb236e03a7870f40e53a4276fc06e580
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Fri Nov 25 19:26:23 2016 +0000

    Add a search form in the footer

commit 626b0124653d9697e1ac6d3424805af41546ba17
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Fri Nov 25 18:00:38 2016 +0000

    Installing/setting up scout

commit 52d7d7e7e058247fa73963b4dd45aa8649df4b9f
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Fri Nov 25 17:50:56 2016 +0000

    Add search dependencies
This commit is contained in:
Jonny Barnes 2016-11-25 19:51:42 +00:00
parent eb51253f33
commit b53221a94a
15 changed files with 305 additions and 4 deletions

83
config/scout.php Normal file
View file

@ -0,0 +1,83 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Search Engine
|--------------------------------------------------------------------------
|
| This option controls the default search connection that gets used while
| using Laravel Scout. This connection is used when syncing all models
| to the search service. You should adjust this based on your needs.
|
| Supported: "algolia", "elasticsearch", "null"
|
*/
'driver' => env('SCOUT_DRIVER', 'algolia'),
/*
|--------------------------------------------------------------------------
| Index Prefix
|--------------------------------------------------------------------------
|
| Here you may specify a prefix that will be applied to all search index
| names used by Scout. This prefix may be useful if you have multiple
| "tenants" or applications sharing the same search infrastructure.
|
*/
'prefix' => env('SCOUT_PREFIX', ''),
/*
|--------------------------------------------------------------------------
| Queue Data Syncing
|--------------------------------------------------------------------------
|
| This option allows you to control if the operations that sync your data
| with your search engines are queued. When this is set to "true" then
| all automatic data syncing will get queued for better performance.
|
*/
'queue' => true,
/*
|--------------------------------------------------------------------------
| Algolia Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your Algolia settings. Algolia is a cloud hosted
| search engine which works great with Scout out of the box. Just plug
| in your application ID and admin API key to get started searching.
|
*/
'algolia' => [
'id' => env('ALGOLIA_APP_ID', ''),
'secret' => env('ALGOLIA_SECRET', ''),
],
/*
|--------------------------------------------------------------------------
| Elasticsearch Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for Elasticsearch, which is a
| distributed, open source search and analytics engine. Feel free
| to add as many Elasticsearch servers as required by your app.
|
*/
'elasticsearch' => [
'index' => env('ELASTICSEARCH_INDEX', 'laravel'),
'config' => [
'hosts' => [
env('ELASTICSEARCH_HOST', 'localhost'),
],
],
],
];