31 lines
511 B
PHP
31 lines
511 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\Company\Company;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ObserverServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register bindings in the container.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Observe company actions
|
|
Company::observe('App\Observers\Company');
|
|
}
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
} |