completed functionality and docs update

This commit is contained in:
glmdev
2016-12-30 23:05:11 +00:00
parent 529f22c4b9
commit 68165c948a
8 changed files with 154 additions and 179 deletions

View File

@@ -1,24 +1,22 @@
<?php
namespace Element\Search;
namespace Glmdev\Search;
use Illuminate\Support\ServiceProvider;
class SearchServiceProvider extends ServiceProvider
{
public function boot(){
}
public function boot(){}
/**
* Register the service and alias the Search class.
*
* @return void
*/
public function register(){
$this->app->bind('e-search', function(){
return new Search;
});
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Search', 'Element\Search\SearchFacade');
$loader->alias('Search', 'Glmdev\Search\Search');
}
}