tethys/app/Providers/AppServiceProvider.php

37 lines
867 B
PHP
Raw Normal View History

2018-11-21 12:40:34 +00:00
<?php
namespace App\Providers;
2015-07-19 06:49:24 +00:00
2019-02-12 11:21:35 +00:00
use App\Models\Dataset;
use App\Observers\DatasetObserver;
2015-07-19 06:49:24 +00:00
use Illuminate\Support\ServiceProvider;
2018-11-21 12:40:34 +00:00
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2019-02-12 11:21:35 +00:00
Dataset::observe(DatasetObserver::class);
2018-11-21 12:40:34 +00:00
}
2015-07-19 06:49:24 +00:00
2018-11-21 12:40:34 +00:00
/**
* Register any application services.
*
* This service provider is a great spot to register your various container
* bindings with the application. As you can see, we are registering our
* "Registrar" implementation here. You can add your own bindings too!
*
* @return void
*/
public function register()
{
2019-02-12 11:21:35 +00:00
// $this->app->bind(
// 'Illuminate\Contracts\Auth\Registrar'
// // 'App\Services\Registrar'
// );
2018-11-21 12:40:34 +00:00
}
2015-07-19 06:49:24 +00:00
}