eloquent-search/src/SearchServiceProvider.php

24 lines
434 B
PHP
Raw Normal View History

2016-07-09 02:25:44 +00:00
<?php
namespace Element\Search;
use Illuminate\Support\ServiceProvider;
class SearchServiceProvider extends ServiceProvider
{
public function boot(){
}
public function register(){
$this->app->bind('e-search', function(){
return new Search;
});
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Search', 'Element\Search\SearchFacade');
}
}