2017-09-14 19:21:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2019-11-16 07:21:14 +00:00
|
|
|
use App\Models\Banking\Transaction;
|
2022-06-01 07:15:55 +00:00
|
|
|
use App\Models\Setting\Category;
|
2019-11-16 07:21:14 +00:00
|
|
|
use Illuminate\Support\ServiceProvider as Provider;
|
2017-09-14 19:21:00 +00:00
|
|
|
|
2019-11-16 07:21:14 +00:00
|
|
|
class Observer extends Provider
|
2017-09-14 19:21:00 +00:00
|
|
|
{
|
|
|
|
|
/**
|
2021-04-15 21:59:43 +00:00
|
|
|
* Register any application services.
|
2017-09-14 19:21:00 +00:00
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2021-04-15 21:59:43 +00:00
|
|
|
public function register()
|
2017-09-14 19:21:00 +00:00
|
|
|
{
|
2021-04-15 21:59:43 +00:00
|
|
|
//
|
2017-09-14 19:21:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2021-04-15 21:59:43 +00:00
|
|
|
* Bootstrap any application services.
|
2017-09-14 19:21:00 +00:00
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2021-04-15 21:59:43 +00:00
|
|
|
public function boot()
|
2017-09-14 19:21:00 +00:00
|
|
|
{
|
2021-04-15 21:59:43 +00:00
|
|
|
Transaction::observe('App\Observers\Transaction');
|
2022-06-01 07:15:55 +00:00
|
|
|
Category::observe('App\Observers\Category');
|
2017-09-14 19:21:00 +00:00
|
|
|
}
|
2019-11-16 07:21:14 +00:00
|
|
|
}
|