mirror of https://github.com/kcal-app/kcal.git
35 lines
617 B
PHP
35 lines
617 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Search\Ingredient;
|
|
use CloudCreativity\LaravelJsonApi\LaravelJsonApi;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
LaravelJsonApi::defaultApi('v1');
|
|
|
|
if (config('scout.driver') === 'algolia') {
|
|
Ingredient::bootSearchable();
|
|
}
|
|
}
|
|
}
|